5 May 2011 at 6:21am
(Last edited: 5 May 2011 6:25am),
I can send HTML mails, with
textmails. But how to send multipart mails? I want to add plaintext part aswell the html part.
For example, if some mail clients dont allow htmls mails they only show plain text part of the mail.
With php.pear's mailer class for example I can attach 2 templates ...
And I have problems with (setTemplate) when using "sendPlain" (It sends only whats in $body variable).
Isnt it possible to use a template when using sendPlain()?
first I generate an array with template data, then I transform the array to an object and then render it with
the text part and html part. and then I also use the $plaintext_body var to add the plaintext template.