module EMail
Defined in:
email.cremail/address.cr
email/concurrent_sender.cr
email/mimetype.cr
Constant Summary
- 
        DEFAULT_SMTP_PORT = 25
- 
        VERSION = "0.6.4"
Class Method Summary
- 
        .send(config : EMail::Client::Config, &)
        
          Send one email with given client settings as EMail::Client::Config object. 
- 
        .send(*args, **named_args, &)
        
          Send one email with given client settings as several arguments. 
Class Method Detail
        
        def self.send(config : EMail::Client::Config, &)
        #
      
      
        Send one email with given client settings as EMail::Client::Config object.
config = EMail::Client::Config.new("your.mx.server.name", 587)
config.use_tls
config.use_auth("your_id", "your_password")
EMail.send(config) do
  # In this block, default receiver is EMail::Message object
  from "[email protected]"
  to "[email protected]"
  subject "Subject of the mail"
  message <<-EOM
    Message body of the mail.
    --
    Your Signature
    EOM
end
        
        def self.send(*args, **named_args, &)
        #
      
      
        Send one email with given client settings as several arguments.
Avairable arguments are same as EMail::Client::Conifg.create method.
EMail.send("your.mx.server.name", 578,
  use_tle: true,
  auth: {"your_id", "your_password"}) do
  # In this block, default receiver is EMail::Message object
  from "[email protected]"
  to "[email protected]"
  subject "Subject of the mail"
  message <<-EOM
    Message body of the mail.
    --
    Your Signature
    EOM
end