-
Notifications
You must be signed in to change notification settings - Fork 61
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
Email service | UseHTML is never set #387
Comments
The shoutrrr/pkg/services/smtp/smtp.go Lines 49 to 51 in a59c927
How are you using shoutrrr? As a library or in another software? There is however a problem that you identified. If you add temporary configuration overrides through the params, and you only specify
That sounds like a TLS problem. What e-mail provider are you using? Also, does it work with another version? |
As a library
I am using Yandex. The same credential works when I am checked out to |
I'm a bit confused here, what two versions are you comparing? |
Yea, it was slightly confusing. The smtp service with my credentials works with I wanted to make changes to the source code to fix the useHTML issue, so I cloned the repo and then pointed shoutrrr to the cloned repo # "go.mod"
replace "github.com/containrrr/shoutrrr" => ../shoutrrr Now, with no changes made to the source code, I get the
But I still get the handshake error. However, checking out to the exact tag instead of the commit works for some reason.
|
The tag is on another branch, but there are no changes to the Actually, I found it. The default hostname was hot fixed in release but never backported. |
When setting the content type to HTML in here
shoutrrr/pkg/services/smtp/smtp.go
Lines 231 to 238 in a59c927
the config is read from the service struct. However,
service.config.UseHTML
is never populated.What's populated is the clone of the config https://github.com/containrrr/shoutrrr/blob/main/pkg/services/smtp/smtp.go#L68-L71
I wanted to create a PR for this but running off the main branch gave me this error.
server did not accept the handshake: 555 5.5.2 Syntax error
Even checking out to the last commit in v0.8.0 gave me the same error. Not sure what's going on in here.
The text was updated successfully, but these errors were encountered: