Because you have created ta totally BOUGS MIME email.

You've rn rough-shod over the "standards" for html enhanced (cough,
cough) email.

Use plain-text, or do a ton of research or use the MIME email classes
from http://phpclasses.org


On Sat, April 8, 2006 5:52 pm, Schalk wrote:
> Greetings All,
>
> Is there any reason why the following code will correctly set the FROM
> and Reply-to fields in Thunderbird but not Outlook? Thanks!
>
> $firstName = $_POST['Contact_FirstName'];
> $lastName = $_POST['Contact_LastName'];
> $address = $_POST['Contact_Address'];
> $homePhone = $_POST['Contact_HomePhone'];
> $bestTime = $_POST['R1'];
> $email = $_POST['Contact_Email'];
>
>
> $to = '[EMAIL PROTECTED]';
> $subject = "Request from www.helpmefindahome.info";
> $headers = "MIME-Version: 1.0\r\n".
>            "Content-type: text/html; charset=iso-8859-1\r\n".
>            "From: ".$email."\r\n".
>            "Reply-to: ".$email."\r\n".
>
>            "Date: ".date("r")."\r\n";
>
> // Compose message:
> $message = "
> <html>
> <body>
> <h1>Message From: ".$firstName. " " .$lastName.
> "</h1>
> First Name: ".$firstName."
> <br />Last Name: ".$lastName."
> <br />Address: ".$address."
> <br />Home phone: ".$homePhone."
> <br />Best time to contact: ".$bestTime."
> <br />Email: ".$email."
> </body>
> </html>
> ";
>
> // Send message
> mail($to, $subject, $message, $headers);
>
> --
> Kind Regards
> Schalk Neethling
> Web Developer.Designer.Programmer.President
> Volume4.Business.Solution.Developers
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to