Skip to content

Releases: arcage/crystal-email

v0.4.3: Bug fix and adding tls_context property to EMail::Client::Config

11 Oct 04:58
8a1d71b
Compare
Choose a tag to compare
  • 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 and EMail::Client::Config#openssl_verify_mode=

    Use #verify_mode method and #verify_mode= method of the EMail::Client::Config#tls_context.

  • (deprecated) openssl_verify_mode argument of EMail::Client::Config.create method

    Use tls_verify_mode argument.

  • Re-enabled displaying client number in the logs when using concurrent sending.

v0.4.2: Bug fix & fix deprecations

04 Oct 00:02
Compare
Choose a tag to compare
Pre-release
  • Fix multipart boundary issue (Thanks @anykeyh)
  • Replace deprecated URI.escape method to URI.encode (Thanks @anykeyh)
  • Replace deprecated Time.now method to Time.local

v0.4.1: bug fix

11 Feb 10:09
c1c7467
Compare
Choose a tag to compare
v0.4.1: bug fix Pre-release
Pre-release
  • fix error caused by log_* arguments for EMail::Client::Config.create()

v0.4.0: Separate SMTP Client settings

09 Feb 16:50
09a7a16
Compare
Choose a tag to compare
Pre-release
  • Separate SMTP client settings to EMail::Client::Config object.
    For backward compatibility, in this version, old style client settings as arguments of EMail.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 to EMail::ConcurrentSender.
    EMail::Sender is now an alias of EMail::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.

06 Feb 05:07
2e0ef70
Compare
Choose a tag to compare
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

08 Nov 15:24
78a02fc
Compare
Choose a tag to compare
Pre-release

EMail::Message

  • add #custom_header method to set your own custom headers.

v0.3.1: Support crystal 0.27.0

05 Nov 02:11
a15c408
Compare
Choose a tag to compare
Pre-release
  • Fix internal Time#epoch_ms method call to Time#to_unix_ms.

v0.3.0: support smtp server with self-signed certificates

15 Oct 14:28
Compare
Choose a tag to compare
  • 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.

28 Jan 14:35
0afc14d
Compare
Choose a tag to compare

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

25 Jan 12:33
1a2f8d9
Compare
Choose a tag to compare
Pre-release

Now you can select default logger or your own Logger instance with logger argument.

NOTICE: Default log format was changed.