Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smtp send mail faild #210

Open
ltfafei opened this issue Feb 2, 2023 · 1 comment
Open

smtp send mail faild #210

ltfafei opened this issue Feb 2, 2023 · 1 comment
Labels
Type: Enhancement Most issues will probably ask for additions or changes.

Comments

@ltfafei
Copy link

ltfafei commented Feb 2, 2023

image

@ltfafei ltfafei added the Type: Enhancement Most issues will probably ask for additions or changes. label Feb 2, 2023
@PoundXI
Copy link

PoundXI commented Dec 8, 2023

Same issue on v1.0.5:

[ERR] failed to send smtp notification for id: email : error getting SMTP client: error connecting to server: dial tcp IP_ADDR:25: connect: connection timed out

The problem is notify app trying to connect to port 25, which may not be correct.

To fix this, specify port in the smtp_server config. (It's not described in the README.md)

smtp:
  - id: email
    smtp_server: mail.example.com:465 << specify port here. eg., 465 or 587
    smtp_username: test@example.com
    smtp_password: password
    from_address: from@email.com
    smtp_cc:
      - to@email.com
    smtp_format: "{{data}}"
    subject: "Email subject"
    smtp_html: false
    smtp_disable_starttls: false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
Development

No branches or pull requests

2 participants