iris
iris copied to clipboard
Sending mail using Gmail returns error failed to connect to smtp
when entering credentials in the ./config/config.dev.yaml file for the iris_smtp once firing up the sender and creating an incident, the output received is:
File "/home/user1/iris/src/iris/vendors/iris_smtp.py", line 148, in send_email raise Exception('Failed to get smtp connection.') Exception: Failed to get smtp connection.
Example yaml file
- type: iris_smtp name: email smtp_server: 'smtp.gmail.com' smtp_gateway: 'smtp.gmail.com' from: '[email protected]' port: 25 username: '[email protected]' password: 'password'
I tried different port, also changed on googleaccount to allow "unsafe" third party tools to send mails. I also played with the login information where username entered withouth @gmail.com etc.
remove smtp_gateway and try.