Releases: arcage/crystal-email
v0.4.3: Bug fix and adding tls_context property to EMail::Client::Config
-
Set default fatal error hundler
on_fatal_proc
to EMail::Client::Config for avoiding loop when unhandled exception is occurred during concurrent sending.It will output backtrace of the exception to STDERR and exit program.
-
Added
EMail::Client::Config#tls_context
method.For STARTTLS command, this made it possible to set more details of tls context, such as the tls protocols, the ciphers, the certificate path and so on, not only verification mode.
-
(deprecated)
EMail::Client::Config#openssl_verify_mode
andEMail::Client::Config#openssl_verify_mode=
Use
#verify_mode
method and#verify_mode=
method of theEMail::Client::Config#tls_context
. -
(deprecated)
openssl_verify_mode
argument ofEMail::Client::Config.create
methodUse
tls_verify_mode
argument. -
Re-enabled displaying client number in the logs when using concurrent sending.
v0.4.2: Bug fix & fix deprecations
v0.4.1: bug fix
- fix error caused by log_* arguments for
EMail::Client::Config.create()
v0.4.0: Separate SMTP Client settings
- Separate SMTP client settings to
EMail::Client::Config
object.
For backward compatibility, in this version, old style client settings as arguments ofEMail.send
,EMail::Sender.new
can be used. - Add
EMail::Client::Config#connect_timeout=
and other timeout related settings. - Fix attachment file issue that size is bigger than 8KB.
- Rename
EMail::Sender
toEMail::ConcurrentSender
.
EMail::Sender
is now an alias ofEMail::ConcurrentSender
.
NOTICE: This version includes the some changes of interface. It may cause some incompatibility from previous version.
V0.3.3: Catch the error that occur in Client#close_socket.
Merge pull request #43 from arcage/catch_error_when_close_socket Catch the error that occur in close_socket.
V0.3.2: Custom header support
EMail::Message
- add
#custom_header
method to set your own custom headers.
v0.3.1: Support crystal 0.27.0
- Fix internal
Time#epoch_ms
method call toTime#to_unix_ms
.
v0.3.0: support smtp server with self-signed certificates
-
Add
openssl_verify_mode
option. (thanks @zaidakram)To start tls connection with mail server which uses self-signed certificates, set
OpenSSL::SSL::VerifyMode::NONE
to this option.
v0.2.5: Change fatal error handling in smtp session.
Now, EMail::Client
will not call exit()
when an exception is raised during SMTP session, but only output FATAL log to internal logger.
And, you can specify the fatal error handler on_fatal_error
to EMail.send
, Client.new
or Sender.new
.
When the on_fatal_error
is set and above situation occur, it will be called with the raised Exception instance.
v0.2.4: Add external logger support
Now you can select default logger or your own Logger instance with logger argument.
NOTICE: Default log format was changed.