PHPMailer AltBody variable

PHPMailer AltBody variable

am 30.08.2007 17:30:47 von fadyay

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!

Re: PHPMailer AltBody variable

am 30.08.2007 18:18:55 von nc

On Aug 30, 8:30 am, Fad=A5 wrote:
>
> 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?

By actually using an e-mail client that doesn't support HTML e-mail.

Cheers,
NC

Re: PHPMailer AltBody variable

am 30.08.2007 19:43:37 von luiheidsgoeroe

On Thu, 30 Aug 2007 18:18:55 +0200, NC wrote:

> On Aug 30, 8:30 am, Fad„ wrote:
>>
>> 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?
>
> By actually using an e-mail client that doesn't support HTML e-mail.

Or an emailclient that is configurable to prefer the text-variant....
Opera can, I think Thunderbird can too.
--
Rik Wasmus

My new ISP's newsserver sucks. Anyone recommend a good one? Paying for
quality is certainly an option.

Re: PHPMailer AltBody variable

am 30.08.2007 20:44:23 von fadyay

Thanks guys!

I'm going to try Opera!