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

how to config ssl #193

Open
bingwill opened this issue Feb 7, 2024 · 2 comments
Open

how to config ssl #193

bingwill opened this issue Feb 7, 2024 · 2 comments

Comments

@bingwill
Copy link

bingwill commented Feb 7, 2024

like the titile shows ,How can i enable ssl when sening emails.

@wneessen
Copy link

The package will automatically use SSL when port is set to 465. Check this: https://github.com/go-gomail/gomail/blob/81ebce5c23dfd25c6c67194b37d3dd3f338c98b1/smtp.go#L46C21-L46C24

Yet, this package is not maintained anymore, due to the maintainer sadly has passed away. You might want to consider using a different package like wneessen/go-mail which uses similar syntax like this package. SSL/TLS support is default there anyways and can be controlled via methods on the Client. See: https://pkg.go.dev/github.com/wneessen/go-mail#Client.SetSSL and https://pkg.go.dev/github.com/wneessen/go-mail#Client.SetTLSPolicy

@bingwill
Copy link
Author

The package will automatically use SSL when port is set to 465. Check this: https://github.com/go-gomail/gomail/blob/81ebce5c23dfd25c6c67194b37d3dd3f338c98b1/smtp.go#L46C21-L46C24

Yet, this package is not maintained anymore, due to the maintainer sadly has passed away. You might want to consider using a different package like wneessen/go-mail which uses similar syntax like this package. SSL/TLS support is default there anyways and can be controlled via methods on the Client. See: https://pkg.go.dev/github.com/wneessen/go-mail#Client.SetSSL and https://pkg.go.dev/github.com/wneessen/go-mail#Client.SetTLSPolicy

what a pity.
thanks,i will try.

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

No branches or pull requests

2 participants