mirror of
https://github.com/MrUnknownDE/netstack-backuptools-bash.git
synced 2026-04-09 09:53:45 +02:00
edit mail-command
This commit is contained in:
@@ -189,5 +189,12 @@ check_ssmtp_packages() {
|
||||
fi
|
||||
}
|
||||
|
||||
echo -e "Subject: $mailsubject\n\n$mailtext" | msmtp -t email
|
||||
(
|
||||
echo "To: $email"
|
||||
echo "Subject: $mailsubject"
|
||||
echo "Content-Type: text/plain"
|
||||
echo
|
||||
cat $mailtext
|
||||
) | msmtp $email
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user