Hello,

On 09/27/2002 08:52 AM, Christian Ista wrote:
> I use the mail function to send mail. On my development PC, I receive
> the mail in HTML, with the high priority,...
> 
> I put the files on the production server, a linux machine, when I
> receive the mail is not in HTML but in plain text, I don't see the high
> priority. I receive that :
> 
> Content-Type: text/html; charset=iso-8859-1
> 
> X-Priority: 1
> 
> X-Mailer: PHP / 4.2.3
> 
> Click on the link to activate the ....
> 
> Could you tell me what can I do ?
> 
> I use this code to send mail :
> 
> $sender_name = "MyWebsite"; 
> $sender_email = ""; 
>               
> $contactemail = $Email1;
> $myreplyemail = ""; 
>               
> $message = "Click on the link to activate the account.".'<br>';
> $message .= http://www.website.com;
> 
> $subject = "TEST"; 
>               
> $header = "From: \"".addslashes($sender_name)."\"
> <".$sender_email.">\r\n";
> $header .= "Reply-To: ".$sender_email."\r\n";
> $header .= "MIME-Version: 1.0\r\n";
> $header .= "Content-Type: text/html; charset=iso-8859-1\r\n";
> $header .= "X-Priority: 1\r\n";
> $header .= "X-Mailer: PHP / ".phpversion()."\r\n";
>               
> mail($contactemail, $subject, $message, $header);  

The mail function is very problematic. Depending on the platform you are 
using, different reasons may lead to the problem you are experiencing.

Maybe you would like to try this PHP class for composing and sending 
messages, including with HTML, that auto-detects the OS and tries to 
work around some problems automatically for you:

http://www.phpclasses.org/mimemessage

Just let me know if it does not avoid your problem.

-- 

Regards,
Manuel Lemos


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

Reply via email to