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

Mail calls non-existent Net::SMTP disable_starttls_auto #1571

Closed
vladimir-mencl-eresearch opened this issue Mar 19, 2023 · 3 comments
Closed

Comments

@vladimir-mencl-eresearch

Hi,

After updating to mail 2.8.0, mail delivery from my app stopped working for me.

I have enable_starttls_auto: false in my Mail delivery_method defaults.

The recent changes to lib/mail/network/delivery_methods/smtp.rb (d91f335) call disable_starttls_auto method that does not exist in net/smtp.rb, resulting into:

2023-03-20 10:43:04 - NoMethodError - undefined method `disable_starttls_auto' for #<Net::SMTP localhost:25 started=false>

I believe this could be easily fixed by replacing the disable_starttls_auto call with disable_starttls - looking at https://github.com/ruby/net-smtp/blob/master/lib/net/smtp.rb, the "auto" behaviour is just tracked by setting @starttls to :auto, and setting it to false would do the right thing.

Cheers,
Vlad

vladimir-mencl-eresearch added a commit to REANNZ/rapidconnect that referenced this issue Mar 19, 2023
This reverts commit af41f21.

Because mikel/mail#1571 makes Ruby Mail break
with `enable_starttls_auto: false` - and exim4 on REANNZ servers no longer
offers TLS, so enabling auto is safe again.
@vladimir-mencl-eresearch
Copy link
Author

FYI @jeremy @eval

@eval
Copy link
Collaborator

eval commented Mar 20, 2023

@vladimir-mencl-eresearch this was fixed in v2.8.1.

@vladimir-mencl-eresearch
Copy link
Author

Ah, I now see it was - should, should have checked before reporting.

vladimir-mencl-eresearch added a commit to REANNZ/rapidconnect that referenced this issue Mar 20, 2023
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