Gekko Forum
Setup Gmail notification - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: Guides (https://forum.gekko.wizb.it/forum-22.html)
+--- Thread: Setup Gmail notification (/thread-56697.html)



Setup Gmail notification - xFFFFF - 04-09-2018

Below solution is only for Gekko CLI.
1. Create new Gmail account from security reasons.
2. Enable access for less secured apps here: https://myaccount.google.com/lesssecureapps
3. Install module emailjs
Code:
cd gekko
npm install emailjs
4. Edit Your configuration file for Gekko CLI
Code:
config.mailer = {
  enabled: true,       // Send Emails if true, false to turn off
  sendMailOnStart: true,    // Send 'Gekko starting' message if true, not if false

  email: 'newemailaccount@gmail.com',    // Your Gmail address
  muteSoft: false, // disable advice printout if it's soft

  password: 'mypassword',       // Your Gmail Password - if not supplied Gekko will prompt on startup.

  tag: '[GEKKO] ',      // Prefix all email subject lines with this

  server: 'smtp.gmail.com',   // The name of YOUR outbound (SMTP) mail server.
  smtpauth: true,     // Does SMTP server require authentication (true for Gmail)
          // The following 3 values default to the Email (above) if left blank
  user: 'newemailaccount@gmail.com',       // Your Email server user name - usually your full Email address 'me@mydomain.com'
  from: 'newemailaccount@gmail.com',       // 'me@mydomain.com'
  to: 'mymainaccount@gmail.com',       // 'me@somedomain.com, me@someotherdomain.com'
  ssl: true,        // Use SSL (true for Gmail)
  port: '465',       // Set if you don't want to use the default port
}
5. Restart Gekko.


RE: Setup Gmail notification - ankasem - 04-16-2018

Hi


if it gives an error

2018-04-16 22:59:16 (WARN): error sending email authorization.failed (bad response on command 'xxxxxxxxxxx: -5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=xxxxxxx
  • Go to https://g.co/allowaccess from a different device you have previously used to access your Google account and follow the instructions.



RE: Setup Gmail notification - crypto49er - 04-26-2018

This works for me. But is there a way to enable this for UI?