Exactly like this github issue: Docker ENV config for SMTP TO value · Issue #1280 · influxdata/kapacitor · GitHub
Using any of the following environment variables, I am unable to send SMTP alerts:
KAPACITOR_SMTP_TO_0=alerts@exmple.com
KAPACITOR_SMTP_TO=alerts@exmple.com
KAPACITOR_SMTP_TO=["alerts@exmple.com"]
The logs say not sending email, no recipients defined
.
When I specify an address in the .email()
in the script it works fine and I get the email. Kapacitor 1.2.1
Am I missing something?