fix: fix Mail Test error

This commit is contained in:
ttionya
2021-12-31 01:08:00 +08:00
parent 13ac83dcc6
commit d20228ef38
2 changed files with 35 additions and 31 deletions
+3 -2
View File
@@ -11,6 +11,9 @@ fi
# mailx test
if [[ "$1" == "mail" ]]; then
export_env_file
init_env_mail
MAIL_SMTP_ENABLE="TRUE"
MAIL_DEBUG="TRUE"
@@ -18,8 +21,6 @@ if [[ "$1" == "mail" ]]; then
MAIL_TO="$2"
fi
init_env
send_mail "vaultwarden Backup Test" "Your SMTP looks configured correctly."
exit 0