Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Sending email with both html and plaintext

by perlfan (Vicar)
on Feb 19, 2016 at 22:06 UTC ( #1155671=note: print w/replies, xml ) Need Help??


in reply to Sending email with both html and plaintext

I use Email::MIME with Email::Sender::Simple. Also in this example, the $transport is provided by Email::Sender::Transport::SMTP::TLS.
my $message = Email::MIME->create_html( header => [ To => $email, From => $from, Subject => $subject, ], body => $html, text_body => $text, ); sendmail( $message, { transport => $transport } );

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1155671]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2020-11-27 14:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?