Jump to content

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


Papalex606

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 [email protected]

 

 

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 protected]");

?>

 

 

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 = "[email protected]";

 

  $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", "[email protected]");

 

?>

<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 [email protected] is an email on your server account, since
//you had your email as [email protected] before.
ini_set("sendmail_from", "[email protected]");

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

 

Hope it works.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.