From f0f3cd64b15ed49f2f784d598eb506ca112a6d90 Mon Sep 17 00:00:00 2001 From: deajan Date: Mon, 2 Jul 2018 10:42:32 +0200 Subject: [PATCH] Added email encoding comment --- dev/ofunctions.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev/ofunctions.sh b/dev/ofunctions.sh index 6a56993..dcfa2c0 100644 --- a/dev/ofunctions.sh +++ b/dev/ofunctions.sh @@ -475,6 +475,12 @@ function SendAlert { # encryption can be set to tls, ssl or none # smtpUser and smtpPassword are optional # SendEmail "subject" "Body text" "receiver@example.com receiver2@otherdomain.com" "/path/to/attachment.file" "senderMail@example.com" "smtpServer.domain.tld" "smtpPort" "encryption" "smtpUser" "smtpPassword" + +# If text is received as attachment ATT00001.bin or noname, consider adding the following to /etc/mail.rc +#set ttycharset=iso-8859-1 +#set sendcharsets=iso-8859-1 +#set encoding=8bit + function SendEmail { local subject="${1}" local message="${2}"