influxdata / kapacitor

Open source framework for processing, monitoring, and alerting on time series data
MIT License
2.31k stars 492 forks source link

SMTP protocol for sending email not working #1472

Open lblt opened 7 years ago

lblt commented 7 years ago

Hello! I'm trying to send email using Gmail SMTP. I tried to implement the advice given in #660 but whithout success... My kapacitor.conf (I'm still testing so I send emails to myself):

[smtp]
  enabled = true
  host = "smtp.gmail.com"
  port = 587
  username = "blabla@gmail.com"
  password = "*********"
  no-verify = false
  global = false
  state-changes-only = false
  from = "blabla@gmail.com"
  to = ["blabla@gmail.com"]
  idle-timeout = "300s"

The relevant part of my tick.script (the log is functioning well):

// Alert
alert
.log('/tmp/GENERAL_alert.log')
.email('blabla@gmail.com')

Any idea on what I am doing wrong? Thanks!

jaredscheib commented 6 years ago

@robertchen Believe it: bugs can exist in software. Your comment sounds condescending to me, and feels discouraging; please mind your tone in future comments. If you are experiencing the same bug, a neutral comment would be appreciated. As this is open-source, feel free to investigate the potential bug, and submit a PR to fix it. Otherwise, thanks for letting us know that you're experiencing it as well.