Crate send_email

Source
Expand description

Simple rust email sender. This library is mostly a wrapper for lettre crate. See examples and documentations on https://github.com/harryhanYuhao/rust_send_email

Structs§

EmailContent
Represents the email content. You should create an email object by using its constructors.
Recipient
The object represents the recipients and used in send_email function.
Sender
Represents the sender information. You should create a sender object by using its constructors. Example

Enums§

Category
This enum represents if the recipient is direct recipient, carbon copy, or blind carbon copy. The values are Category::To, Category::Cc, and Category::Bcc.
SmtpServer
This enum represents the category of the recipient. SMTP server is the server that sends the email You can use custom SMTP server by using the Custom variant. The predefined SMTP servers are Gmail: smtp.gmail.com FastMail: smtp.fastmail.com Outlook: smtp-mail.outlook.com Yahoo: smtp.mail.yahoo.com

Functions§

send_email
Send email, providing the sender, email content, and recipients.