EMail::Client
SMTP client object.
Client configuration
EMail::Client::Config object is used to set client configrations.
Logging
Without client specific logger in EMail::Client::Config, all EMail::Client objects use the default logger.
The default logger can be got by EMail::Client.log You can set log level, output IO, and log formatter for the default logger by using EMail::Client.log_level=, EMail::Client.log_io=, EMail::Client.log_formatter= methods respectively.
Constructors
Creates smtp client object by EMail::Client::Config object.
Class methods
Instance methods
Sends a email message
You can call this only in the block of the EMail::Client#start method.
This returns sending result as Bool(true for success, false for fail).
Starts SMTP session, unless we're going to be using the SMTP2GO API.
In the block, the default receiver will be self.