hasnat / docker-events-notifier

Docker events notifier
MIT License
10 stars 1 forks source link

Using smtp server with authentication always throws "wrong host name" error. #2

Closed doubleaxe closed 3 years ago

doubleaxe commented 3 years ago

As stated in title: if you try to use smtp server with authentication - email is not sent and logs always show error "wrong host name".

This is due to fact, that smtp.PlainAuth expects host name without port, and smtp.SendMail needs port.

Will attach PR.

doubleaxe commented 3 years ago

https://github.com/hasnat/docker-events-notifier/pull/3

hasnat commented 3 years ago

closing, fixed by #3 from @doubleaxe (part of latest/0.0.2)