Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Sending email with both html and plaintext

by perlfan (Vicar)
on Feb 19, 2016 at 22:06 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1155671]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-20 16:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found