Click to See Complete Forum and Search --> : Send text and html version with net::smtp?


halldorr
11-25-2008, 12:05 PM
I've been sending out emails with perls NET:SSMTP and it's been working fine but I also usephpmailer elsewhere and it lets me specify an alttext so if a user has a text only client they can see that. Is this sta ll possible using NET:SMTP? I'd like to be able to send both the HTML and text versions.

CyCo
11-25-2008, 06:48 PM
One can use MIME::Lite::TT::HTML (http://search.cpan.org/~chunzi/MIME-Lite-TT-HTML-0.03/lib/MIME/Lite/TT/HTML.pm). Default sending mechanism uses sendmail, but SMTP can also be used. Here (http://www.revsys.com/writings/perl/sending-email-with-perl.html), you will find an easy-to-follow breakdown of how to utilize it.