in reply to problem w/ MIME::Lite and multipart/alternative emails
Hmm, works fine for me (what exactly do you mean by "isn't coming through"?):
use MIME::Lite; $email='me@home.com'; $htmlMail = "<html></html>"; $textMail = "texting"; my $mailObj = MIME::Lite->new( From => 'admin@domain.com', To => $email, Subject => "subject line here", Type => 'multipart/alternative' ); $mailObj->attach( Type => 'text/html', Data => $htmlMail, ); $mailObj->attach( Type => 'text/plain', Data => $textMail, ); print $mailObj->as_string(); __OUTPUT__ Content-Transfer-Encoding: binary Content-Type: multipart/alternative; boundary="_----------=_1138042047 +111520" MIME-Version: 1.0 X-Mailer: MIME::Lite 3.01 (F2.72; T1.15; A1.62; B3.04; Q3.03) Date: Mon, 23 Jan 2006 18:47:27 UT From: admin@domain.com To: me@home.com Subject: subject line here This is a multi-part message in MIME format. --_----------=_1138042047111520 Content-Disposition: inline Content-Length: 13 Content-Transfer-Encoding: binary Content-Type: text/html <html></html> --_----------=_1138042047111520 Content-Disposition: inline Content-Length: 7 Content-Transfer-Encoding: binary Content-Type: text/plain texting --_----------=_1138042047111520--
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: problem w/ MIME::Lite and multipart/alternative emails
by geektron (Curate) on Jan 23, 2006 at 18:56 UTC | |
by tirwhan (Abbot) on Jan 23, 2006 at 19:24 UTC | |
by geektron (Curate) on Jan 23, 2006 at 19:54 UTC | |
by thedoe (Monk) on Jan 23, 2006 at 20:41 UTC | |
by geektron (Curate) on Jan 23, 2006 at 20:44 UTC | |
by Anonymous Monk on Apr 11, 2014 at 01:46 UTC |