Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Email::MIME requires encoding & charset

  Also, an email body should normally end with a newline
  • Loading branch information...
commit 0ec6bd5cfae22467789926ce8cae8cbeccebc6f8 1 parent 9be0139
@madsen madsen authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/perlfaq9.pod
View
6 lib/perlfaq9.pod
@@ -293,7 +293,11 @@ Use the L<Email::MIME> and L<Email::Sender::Simple> modules, like so:
To => 'friend@example.com',
Subject => 'Happy birthday!',
],
- body_str => 'Happy birthday to you!',
+ attributes => {
+ encoding => 'quoted-printable',
+ charset => 'ISO-8859-1',
+ },
+ body_str => "Happy birthday to you!\n",
);
use Email::Sender::Simple qw(sendmail);
Please sign in to comment.
Something went wrong with that request. Please try again.