On Jul 20, 6:08 am, mimic...@googlemail.com (Mimi Cafe) wrote:
> I am testingMIME::Lite::TT::HTMLand it works as expected using myhtml
> template. What I need to understand is why it does nit send email using my
> text template or both template, since I did not explicitly specify which
> template to use anywhere when calling new().
>
> I specified 2 templates below following theMIME::Lite::TT::HTMLsynopsis,
> but I can't see anywhere where it says use thehtmltemplate. Is that the
> default behaviour of this module to use anhtmltemplate even if more than 1
> is supplied?
>
> Template    => {
>            html=> 'mail.html',
>             text => 'mail.txt',
>         },
>
> I have not used Template::Toolkit before and theMIME::Lite::TT::HTMLdoc
> relies on knowledge of Template::Toolkit.
>
> Regards

You are supposed to use *both* HTML and text parts for an HTML mail.
This is how HTML mail works.  When you send an HTML to an email client
that supports HTML mail (almost everything does these days) your email
client will display HTML mail.  However, if that email is opened in an
email client that does not support HTML mail (BlackBerry's and older
smartphones come to mind) the plaintext part will be displayed.

For testing the plaintext part of the email, you might look for an
option in your email client to use plaintext mail.  If you have
Outlook you can move the email from your Inbox folder to the Junk Mail
(which will display plaintext by default).

Good luck!


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to