Chris, Instead of:

> mail($to_email, $subject, '', $headers);

Try this:

> mail($to_email, $subject, $body_html, $headers);

Get the $body_html out of $headers too.

Regards,

        Guus der Kinderen



Chris Payne wrote:

Hi there everyone,



I'm having a major problem.  I'm trying to send a message FROM Windows XP
Pro, now this is where it get weird - in some mail packages it WORKS, and in
some it doesn't.  Basically it's an HTML email which is sent when a form is
completed, the results are stored in a DB and then sent on in an HTML Email
Format.  In My outlook 2003, it works, in my friends outlook 2003 which I
setup for him exactly the same way mine is - the email is blank, it is the
same in his outlook express.  My question is, can anyone see anything that I
am doing wrong for this to happen?  Maybe my headers are wrong?  Any help
would be really appreciated as this is really getting to me.



This is my first time trying with this method, I usually use a different
method as I use Linux, but the method I use didn't want to work without
sendmail.



Thank you everyone





$to_name = 'To Name;

$to_email = '[EMAIL PROTECTED]';





$from_name = 'From Name';

$from_email = '[EMAIL PROTECTED]';

$subject = 'Information Request';

$body_simple = 'Simple content for non-MiME-compliant clients';

$body_plain = 'This message requires a HTML Capable Client - Such as Outlook
or Outlook Express';


$body_html = "$messagebody";



$headers = "From: \"".$from_name."\" <".$from_email.">\r\n";

$headers .= "to: \"".$to_name."\" <".$to_email.">\r\n";

$headers .= "Return-Path: <".$from_email.">\r\n";

$headers .= "MIME-Version: 1.0\r\n";



$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

$headers .= "Content-Transfer-Encoding: 8bit\r\n\r\n";

$headers .= $body_html."\r\n";



mail($to_email, $subject, '', $headers);



---------



Regards



Chris



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



Reply via email to