Skip to content

Conversation

@wandernauta
Copy link
Contributor

This is intended as a compatible replacement of the existing email notifier logic: setting 'server' to '10.0.0.2' will still open a SMTP connection to port 25 on that host, and send the same message as before. However...

  • A hostname can now be given instead of an IP address.
  • A port number other than 25 can now be provided.
  • If the server hostname is prefixed with 'smtps://', we do TLS.
  • If additionally a username and password are given, we do AUTH.

Combined, this looks something like:

smtps://myuser:[email protected]:465

The new implementation (like the existing one) does not set a time-out, but this could be added.

This is intended as a compatible replacement of the existing email
notifier logic: setting 'server' to '10.0.0.2' will still open a SMTP
connection to port 25 on that host, and send the same message as before.
However...

- A hostname can now be given instead of an IP address.
- A port number other than 25 can now be provided.
- If the server hostname is prefixed with 'smtps://', we do TLS.
- If additionally a username and password are given, we do AUTH.

Combined, this looks something like:

    smtps://myuser:[email protected]:465

The new implementation (like the existing one) does not set a time-out,
but this could be added.
@dch dch mentioned this pull request Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant