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
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 = "Username@gmail.com", Password = "Password", To = "netutilities@example.com", From = "Username@gmail.com", Subject = ".Net Sugar", Body = "Net Utilities" }; SMTP.Send(options);
There was an error while loading. Please reload this page.