diff --git a/action.sh b/action.sh index ba66afb..6d50cf3 100755 --- a/action.sh +++ b/action.sh @@ -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