Setup Gmail notification
#1
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.
My projects [Strategies] [Datasets]
  Reply
#2
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.
  Reply
#3
This works for me. But is there a way to enable this for UI?
If it isn't crypto, it isn't worth mining, it isn't worth speculating.
https://www.youtube.com/c/crypto49er
  Reply


Forum Jump:


Users browsing this thread: