diff --git a/docs/SMTP_GMAIL.md b/docs/SMTP_GMAIL.md new file mode 100644 index 00000000..3aef0fd4 --- /dev/null +++ b/docs/SMTP_GMAIL.md @@ -0,0 +1,15 @@ +## Use the Gmail SMTP server + +1) Create an app password by following the instructions from Google, you need to Enable 2FA for this to work. +[https://support.google.com/accounts/answer/185833](https://support.google.com/accounts/answer/185833) + +2) Specify the following settings: + +```python + SMTP_SKIP_TLS=True + SMTP_FORCE_SSL=True + SMTP_PORT=465 + SMTP_SERVER='smtp.gmail.com' + SMTP_PASS='16-digit passcode from google' +``` + diff --git a/front/php/templates/language/en_us.php b/front/php/templates/language/en_us.php index 3acc09f5..f137d3da 100755 --- a/front/php/templates/language/en_us.php +++ b/front/php/templates/language/en_us.php @@ -516,7 +516,7 @@ the arp-scan will take hours to complete instead of seconds. 'REPORT_MAIL_name' => 'Enable email', 'REPORT_MAIL_description' => 'If enabled an email is sent out with a list of changes you\'ve subscribed to. Please also fill out all remaining settings related to the SMTP setup below.', 'SMTP_SERVER_name' => 'SMTP server URL', -'SMTP_SERVER_description' => 'The SMTP server host URL. For example smtp-relay.sendinblue.com. I don\'t recommend using Gmail as an SMTP server as the setup is quite complex (I couldn\'t get it to work - Please reach out with a guide if you did)', +'SMTP_SERVER_description' => 'The SMTP server host URL. For example smtp-relay.sendinblue.com. To use Gmail as an SMTP server follow this guide', 'SMTP_PORT_name' => 'SMTP server PORT', 'SMTP_PORT_description' => 'Port number used for the SMTP connection. Set to 0 if you don\'t want to use a port when connecting to the SMTP server.', 'SMTP_SKIP_LOGIN_name' => 'Skip authentication', diff --git a/front/settings.php b/front/settings.php index 48e432b2..2dad3ac4 100755 --- a/front/settings.php +++ b/front/settings.php @@ -469,8 +469,6 @@ while ($row = $result -> fetchArray (SQLITE3_ASSOC)) { function handleEvent (value){ setParameter ('Front_Event', value) - // console.log(value) - // show message showModalOk("", " "); @@ -486,9 +484,6 @@ while ($row = $result -> fetchArray (SQLITE3_ASSOC)) { setTimeout(function(){ displayedEvent = $('#'+modalEventStatusId).html() - // console.log(displayedEvent) - // console.log(displayedEvent.indexOf('finished') == -1) - // loop until finished if(displayedEvent.indexOf('finished') == -1) // if the message is different from finished, check again in 4s {