Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
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 sharing their wisdom with the Monastery: (4)
As of 2024-04-14 13:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found