aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2019-03-19 17:35:39 +0200
committerFilipp Lepalaan <filipp@mac.com>2019-03-19 17:35:39 +0200
commiteaeb01bd3f585793366250692b9a2894f5a1bc89 (patch)
tree08352b44457bcc0f5bc72ce3d311754db33986df
parentc7d86ab91ce3e5f9cf1c36d7b19707a34e4039e4 (diff)
downloadsendEmail-master.tar.gz
sendEmail-master.tar.bz2
sendEmail-master.zip
Encode subject as utf-8HEADmaster
-rwxr-xr-xsendEmail3
1 files changed, 1 insertions, 2 deletions
diff --git a/sendEmail b/sendEmail
index 277c396..31e36a7 100755
--- a/sendEmail
+++ b/sendEmail
@@ -39,7 +39,6 @@ use strict;
use IO::Socket;
use Term::ReadKey;
-
########################
## Global Variables ##
########################
@@ -324,7 +323,7 @@ sub processCommandLine {
$subject = "";
while ($ARGS[$counter] && $ARGS[$counter] !~ /^-/) {
if ($subject) { $subject .= " "; }
- $subject .= $ARGS[$counter];
+ $subject .= '=?utf-8?B?' . base64_encode($ARGS[$counter]) . '?=';
$counter++;
} $counter--;
}