Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Undocumented :openssl_verify_mode option for smtp_settings

  • Loading branch information...
commit a1639ad7524127be0a9e9398dc2ccc8c6629adee 1 parent 66a2ffc
Florent Piteau flop authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 actionmailer/lib/action_mailer/base.rb
4 actionmailer/lib/action_mailer/base.rb
@@ -296,6 +296,10 @@ module ActionMailer #:nodoc:
# information and a cryptographic Message Digest 5 algorithm to hash important information)
# * <tt>:enable_starttls_auto</tt> - When set to true, detects if STARTTLS is enabled in your SMTP server
# and starts to use it.
+ # * <tt>:openssl_verify_mode</tt> - When using TLS, you can set how OpenSSL checks the certificate. This is
+ # really useful if you need to validate a self-signed and/or a wildcard certificate. You can use the name
+ # of an OpenSSL verify constant ('none', 'peer', 'client_once','fail_if_no_peer_cert') or directly the
+ # constant (OpenSSL::SSL::VERIFY_NONE, OpenSSL::SSL::VERIFY_PEER,...).
# * <tt>sendmail_settings</tt> - Allows you to override options for the <tt>:sendmail</tt> delivery method.
# * <tt>:location</tt> - The location of the sendmail executable. Defaults to <tt>/usr/sbin/sendmail</tt>.
Please sign in to comment.
Something went wrong with that request. Please try again.