Utilities.Mail - AydinAdn/NetUtilities GitHub Wiki
Mail.MailOptions - SMTP Options
A blueprint for the email you wish to send, it has the following members.
string Username
string Password
string SMTPHost
int SMTPPort
string To
string From
string Subject
string Body
bool UseSsl
bool UseHtml
Mail.SMTP - Send emails using SMTP
You can use the SMTP class to send emails by specifying the SMTP Options.
var options = new MailOptions
{
SMTPHost = "smtp.gmail.com",
SMTPPort = 587,
UseSsl = true,
Username = "[email protected]",
Password = "Password",
To = "[email protected]",
From = "[email protected]",
Subject = ".Net Sugar",
Body = "Net Utilities"
};
SMTP.Send(options);