This commit is contained in:
Honza Hommer 2019-05-12 00:35:47 +02:00
parent 773e1d4e05
commit 4f03548608
No known key found for this signature in database
GPG Key ID: 5EBDE8E7E1A00ACA

View File

@ -40,13 +40,13 @@ sendmail_send() {
_saveaccountconf_mutable SENDMAIL_TO "$SENDMAIL_TO" _saveaccountconf_mutable SENDMAIL_TO "$SENDMAIL_TO"
subject="=?UTF-8?B?$(echo "$_subject" | _base64)?=" subject="=?UTF-8?B?$(echo "$_subject" | _base64)?="
error=$( { echo "From: $SENDMAIL_FROM error=$({ echo "From: $SENDMAIL_FROM
To: $SENDMAIL_TO To: $SENDMAIL_TO
Subject: $subject Subject: $subject
Content-Type: text/plain; charset=utf-8 Content-Type: text/plain; charset=utf-8
$_content $_content
" | "$SENDMAIL_BIN" -f "$SENDMAIL_FROM" "$SENDMAIL_TO"; } 2>&1 ) " | "$SENDMAIL_BIN" -f "$SENDMAIL_FROM" "$SENDMAIL_TO"; } 2>&1)
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
_debug "sendmail send error." _debug "sendmail send error."