An Connection to an SMTP server to send emails
Methods
Creates a new SMTP connection. This connection can later be used to send emails.
Example connection with required tls: "smtp://smtp.postmarkapp.com:587?tls=required"
Example
//let smtp = exo::be::Smtp::new("server", "user", "password")?;
//assert!(smtp is exo::be::Smtp);
fn new_system() -> Result
Creates a new SMTP connection to the default email system. This connection can later be used to send emails. It's not allowed to send commercial email over this account!
Example
let smtp = new_system?;
assert!;
fn new_marketing() -> Result
Creates a new SMTP connection to the default email system. This connection can later be used to send marketing emails.
Example
let smtp = new_marketing?;
assert!;