diff options
-rw-r--r-- | addons/smtp-mail.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/smtp-mail.sh b/addons/smtp-mail.sh index 9cac0575..d4190efb 100644 --- a/addons/smtp-mail.sh +++ b/addons/smtp-mail.sh @@ -224,7 +224,9 @@ set sendmail="/usr/bin/msmtp -t" DEFINE_MAIL # Test sending of mails -if ! echo -e "Congratulations! Since this email reached you, it seems like everything is working properly. :) To change the settings please check /etc/msmtp on your server, or simply just run the setup script again." | mail -s "Test email from your NcVM" "$RECIPIENT" &>/dev/null +if ! echo -e "Congratulations! Since this email reached you, it seems like everything is working properly. :) +To change the settings please check /etc/msmtp on your server, or simply just run the setup script again." \ +| mail -s "Test email from your NcVM" "$RECIPIENT" &>/dev/null then # Fail message msg_box "It seems like something has failed. |