From 472420ba17c69b590dbf52b9e6e38dd6b6183c0a Mon Sep 17 00:00:00 2001 From: "Christopher J. Madsen" Date: Sun, 12 Feb 2012 23:29:39 -0600 Subject: [PATCH] Email::MIME requires encoding & charset Also, an email body should normally end with a newline --- docs/learn/examples/email.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/learn/examples/email.html b/docs/learn/examples/email.html index 97a4e81c7..09fd1c2ed 100644 --- a/docs/learn/examples/email.html +++ b/docs/learn/examples/email.html @@ -13,10 +13,14 @@ 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", ); # send the message use Email::Sender::Simple qw(sendmail); sendmail($message); -[%- END %] \ No newline at end of file +[%- END %]