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

may need :ssl in smtp_setting #14290

Closed
OmmyZhang opened this issue Jul 11, 2020 · 0 comments · Fixed by #14309
Closed

may need :ssl in smtp_setting #14290

OmmyZhang opened this issue Jul 11, 2020 · 0 comments · Fixed by #14309

Comments

@OmmyZhang
Copy link
Contributor

Expected behaviour

Can send email

Actual behaviour

"EOFError: end of file reached"

Steps to reproduce the problem

Use SMTPs Protocol (port 465)

Specifications

After I changed to use a smtp server that only provides SSL(port 465), no TLS(port 587), I find I can't send emails and always get "EOFError: end of file reached". Finally, I solved this problem by adding :ssl => true in smtp setting.

So, maybe there should be :ssl => ENV['SMTP_SSL'].presence, in config/environments/production.rb, just like :tls => ENV['SMTP_TLS'].presence,.

(or maybe there's already some way to configure this but I miss it?)

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 a pull request may close this issue.

1 participant