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

Add support for SMTP with SSL. #423

Closed
wants to merge 1 commit into from
Closed

Conversation

airblade
Copy link
Contributor

Fastmail requires SMTP to use SSL but not STARTTLS. This change enables
ones to turn on SSL without automatically starting TLS.

Here are some relevant links:

http://blog.fastmail.fm/2012/05/21/enforcing-ssltls-encryption-of-all-connections/
https://www.fastmail.fm/docs/encryption.html#ot

Fastmail requires SMTP to use SSL but not STARTTLS.  This change enables
ones to turn on SSL without automatically starting TLS.

Here are some relevant links:

http://blog.fastmail.fm/2012/05/21/enforcing-ssltls-encryption-of-all-connections/
https://www.fastmail.fm/docs/encryption.html#ot
@ghost
Copy link

ghost commented Mar 25, 2013

Would it make more sense to have a single option for this?

notify_by Mail do |mail|
  mail.encryption = :starttls # or :ssl (or :tls)

Setting Mail's :ssl or :tls option to true negates it's enable_starttls_auto setting.
Net::SMTP does not distinguish between :ssl or :tls, but having the option accept both might be easier for users following various email client setup instructions to understand.

https://github.com/meskyanichi/backup/compare/mail_notifier

What do you think?

@airblade
Copy link
Contributor Author

Good idea – I agree.

@ghost ghost closed this in 1c6be33 Mar 26, 2013
This pull request was closed.
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 this pull request may close these issues.

1 participant