Posted by Fad₯ on 08/30/07 15:30
Hello guys,
I'm trying to create a script. When the script finished it sends
notifications to users.
I'm using phpmailer obviously to send the mails. I have an html
version as well as a plain text version for clients that doesn't
support html emails.
How can I test the plain text version?
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->IsHTML(true);
$mail->Host = $SMTP_HOST;
$mail->Port = 25;
// Prepare the email.
$mail->FromName = $from_name;
$mail->From = $from_email;
$mail->AddAddress($recip_email)
$mail->Subject = $subject;
$mail->Body = $html_body;
$mail->AltBody = $text_body;
When I try to set up outlook to read all standard mail in plain text
it takes my html version and transform it.
Thanks mates!
Navigation:
[Reply to this message]
|