bugfix mailsendenc

This commit is contained in:
2015-07-10 12:55:53 +03:00
parent 4015be2500
commit 9a1586863e

View File

@@ -111,9 +111,8 @@ function mailsendenc {
FREMAIL="$FREMAIL";
SUBJECT="[$DOMAIN] $1";
MSGBODY1="$2"
MSGBODY2=$(echo $3 | openssl rsautl -inkey $SSLKEY -encrypt > $MAILTMP.crypt)
BOUNDARY="ZZafgwejwepfgkl.9453x1q"
ATTACHMENT=$(base64 $MAILTMP.crypt)
ATTACHMENT=$(echo $3 | openssl rsautl -inkey $SSLKEY -encrypt | base64)
printf '%s\n' "From: $FREMAIL
To: $TOEMAIL
@@ -129,8 +128,6 @@ Content-Disposition: inline
$MSGBODY1
$MSGBODY2
--${BOUNDARY}
Content-Type: text/plain
Content-Transfer-Encoding: base64