summaryrefslogtreecommitdiff
path: root/FS/FS/Misc.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2014-03-12 14:10:34 -0700
committerMark Wells <mark@freeside.biz>2014-03-12 14:10:34 -0700
commite293cc921e2382964cc9caba186d828a6646f84d (patch)
tree24d2569b5687be8dad9d898c0965a51e1b51e1cf /FS/FS/Misc.pm
parentf32ff6851340686b53a757dc56dc3c8831b50395 (diff)
more excruciatingly correct UTF-8ness in sent email
Diffstat (limited to 'FS/FS/Misc.pm')
-rw-r--r--FS/FS/Misc.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/FS/FS/Misc.pm b/FS/FS/Misc.pm
index c598507..93445ab 100644
--- a/FS/FS/Misc.pm
+++ b/FS/FS/Misc.pm
@@ -154,6 +154,7 @@ sub send_email {
unshift @mimeparts, {
'Type' => ( $options{'content-type'} || 'text/plain' ),
+ 'Charset' => 'UTF-8',
'Data' => $options{'body'},
'Encoding' => ( $options{'content-type'} ? '-SUGGEST' : '7bit' ),
'Disposition' => 'inline',
@@ -165,6 +166,7 @@ sub send_email {
'Type' => ( $options{'content-type'} || 'text/plain' ),
'Data' => $options{'body'},
'Encoding' => ( $options{'content-type'} ? '-SUGGEST' : '7bit' ),
+ 'Charset' => 'UTF-8',
);
}
@@ -363,6 +365,7 @@ sub generate_email {
$alternative->attach(
'Type' => 'text/plain',
'Encoding' => 'quoted-printable',
+ 'Charset' => 'UTF-8',
#'Encoding' => '7bit',
'Data' => $data,
'Disposition' => 'inline',