SMTP variables

This commit is contained in:
2023-06-21 12:30:30 +00:00
parent 9a86a55277
commit b6f2c8ce64
2 changed files with 87 additions and 12 deletions

View File

@@ -325,6 +325,63 @@ ask_additionals() {
fi;
done
echo "Please choose an SMTP server (gmail/outlook/other): ";
while read -r SMTP_SERVER; do
if [ "$SMTP_SERVER" != "" ]; then
break;
fi;
done
if [ "$SMTP_SERVER" == "other" ]; then
echo "Please add STMP HOST: ";
while read -r SMTP_HOST; do
if [ "$SMTP_HOST" != "" ]; then
break;
fi;
done
echo "Please add STMP PORT (587,465,25,etc.): ";
while read -r SMTP_PORT; do
if [ "$SMTP_PORT" != "" ]; then
break;
fi;
done
echo "Please add STMP SECURITY (starttls,force_tls,off,etc.): ";
while read -r SMTP_SECURITY; do
if [ "$SMTP_SECURITY" != "" ]; then
break;
fi;
done
fi
echo "Please add STMP FROM (mail address from): ";
while read -r SMTP_FROM; do
if [ "$SMTP_FROM" != "" ]; then
break;
fi;
done
echo "Please add STMP USERNAME: ";
while read -r SMTP_USERNAME; do
if [ "$SMTP_USERNAME" != "" ]; then
break;
fi;
done
echo "Please add STMP PASSWORD: ";
while read -r SMTP_PASSWORD; do
if [ "$SMTP_PASSWORD" != "" ]; then
break;
fi;
done
echo "Please add Domains Whitelist: ";
while read -r DOMAINS_WHITELIST; do
if [ "$DOMAINS_WHITELIST" != "" ]; then
break;
fi;
done
fi