How to send email in ASP.NET and in C# sample code?
Sample code in ASP.NET and C#:
MailMessage msg = new MailMessage(“<From Address>”, “<To Address>”, “<Subject>”, “<Body>”);
SmtpClient smtpClient = new SmtpClient(“Email Server”);
smtpClient.Send(msg);
No comments:
Post a Comment