What is syntax code to send email from an ASP.NET application?
Developers use the following syntax code to send email from an ASP.NET application:
MailMessagemailMess = new MailMessage ();
mailMess.From = "email@example.com"
mailMess.To = "firstname.lastname@example.org"
mailMess.Subject = "Test email";
mailMess.Body = "Hi This is a test mail for bestinterviewquestion.";
SmtpMail.SmtpServer = "localhost";