http://qs321.pair.com?node_id=1155671


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 } );