bugfix mailsendenc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user