Jump to content

I need help with a contact form soo bad! There must be a saviour in my time of n


Recommended Posts

theres also a FAQ just beneath titled 'Sendmail functions' which is a little bit too perfect.

 

its says: -

 

What is the path to Sendmail?

 

/usr/sbin/sendmail -fuser\@domainname.co.uk

 

You need to replace -fuser\@domainname.co.uk with a valid mailbox on your account:

ie -froot\@yourdomain.co.uk

 

You must leave in the -f and make sure there is a \ before the @

 

Please note when sending email from a script on your website either the to or from address needs to be a valid email account that is setup, eg root@yourdomain.co.uk

 

 

does that mean anything to you?

Since you're on a windows server try adding the following in your script as per streamline.net's faq

http://www.streamlinesupport.net/index.php?page=show&id=163&subid=59&catid=7

 

<?php

ini_set("sendmail_from", "email@yourdomain.com");

?>

 

 

did you mean so the sode reads like this?

 

<?php

 

    $your_company = $_GET['company'];

    $your_name = $_GET['name'];

    $your_phone = $_GET['phone'];

    $your_email = $_GET['email'];

    $your_message = $_GET['message'];

 

    $recipient_email = "info@pavelockstudios.com";

 

  $subject = "from " . $your_email;

  $headers = "From: " . $your_name . " <" . $your_email . ">\n";

    $headers .= 'Content-type: text/html; charset=iso-8859-1';

 

    $content = "<html><head><title>Contact letter</title></head><body>

";

    $content .= "Company: " . $your_company . "

";

    $content .= "Name: " . $your_name . "

";

    $content .= "Phone: " . $your_phone . "

";

    $content .= "E-mail: " . $your_email . "

 

";

    $content .= $your_message;

    $content .= "

</body></html>";

 

    mail($recipient_email,$subject,$content,$headers);

 

ini_set("sendmail_from", "info@pavelockstudios.com");

 

?>

<html>

    <body bgcolor="#282E2C">

        <div align="center" style="margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold">

            Your message was sent. Thank you.

        </div>

    </body>

</html>

<script>resizeTo(300, 300)</script>

 

 

 

If so ive jsut tried that, but still nothing in the inbox. :( I appreciate your help though esukf, any other ideas? Is the code correct?

The set_ini line should be before the mail function.

 

<?php
//make sure email info@pavelockstudios.com is an email on your server account, since
//you had your email as info@darkiconstudios.com before.
ini_set("sendmail_from", "info@pavelockstudios.com");

mail($recipient_email,$subject,$content,$headers);
?>

 

Hope it works.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.