- Allow case-insensitive strings for SASL mechanism ruby#64
- Make #auth_capable? public ruby#63
- Add XOAUTH2 authenticator ruby#80
- Remove unused private auth_method ruby#67
- Delegate checking auth args to the authenticator ruby#73
- Updated docs, especially TLS and SASL-related ruby#66
- Renew test certificates ruby#75
- Fix version extraction to work with non ASCII characters with any LANG ruby#76
- Replace non-ASCII EM DASH (U+2014) with ASCII hyphen (U+002D) ruby#78
- Use reusing workflow for Ruby versions ruby#79
- Make the test suite compatible with --enable-frozen-string-literal ruby#81
- add Net::SMTP::Authenticator class and auth_* methods are separated from the Net::SMTP class. ruby#53
This allows you to add a new authentication method to Net::SMTP.
Create a class with an
authmethod that inherits Net::SMTP::Authenticator. Theauthmethod has two arguments,userandsecret. Send an instruction to the SMTP server by using thecontinueorfinishmethod. For more information, see lib/net/smtp/auto _*.rb. - Add SMTPUTF8 support ruby#49
- Revert "Replace Timeout.timeout with socket timeout" ruby#51
- Fixed issue sending emails to unaffected recipients on 53x error ruby#56
- Removed unnecessary Subversion keywords ruby#57
- Make exception API compatible with what Ruby expects ruby#42
- add Net::SMTP::Address.
- add Net::SMTP#capable? and Net::SMTP#capabilities.
- add Net::SMTP#tls_verify, Net::SMTP#tls_hostname, Net::SMTP#ssl_context_params
- Add
tls,starttlskeyword arguments.# always use TLS connection for port 465. Net::SMTP.start(hostname, 465, tls: true) # do not use starttls for localhost Net::SMTP.start('localhost', starttls: false)
- The tls_* paramter has been moved from start() to initialize().
- Add
responseto SMTPError exceptions. Net::SMTP.start()and#start()acceptsssl_context_paramskeyword argument.- Replace
Timeout.timeoutwith socket timeout. - Remove needless files from gem.
- Add dependency on digest, timeout.
- Update the license for the default gems to dual licenses.
- Add dependency for net-protocol.
-
Verify the server's certificate by default. If you don't want verification, specify
start(tls_verify: false). ruby#12 -
Use STARTTLS by default if possible. If you don't want starttls, specify:
smtp = Net::SMTP.new(hostname, port) smtp.disable_starttls smtp.start do |s| s.send_message .... endruby#9
-
Net::SMTP.start and Net::SMTP#start arguments are keyword arguments.
start(address, port = nil, helo: 'localhost', user: nil, secret: nil, authtype: nil) { |smtp| ... }passwordis an alias ofsecret. ruby#7 -
Add
tls_hostnameparameter tostart(). If you want to use a different hostname than the certificate for the connection, you can specify the certificate hostname withtls_hostname. ruby#14 -
Add SNI support to net/smtp ruby#4
- enable_starttls before disable_tls causes an error. ruby#10
- TLS should not check the hostname when verify_mode is disabled. ruby#6
This is the first release of net-smtp gem.