CAll Us: +91 88 00 563434   Login

Authenticate Emails in ASP.NET Using SMTP

Nowadays, you need to enable SMTP authentication for all emails send from your hosting account. It is easy to enable SMTP in case if you make use of e-mail clients such as Outlook. However, you should provide the required authentication code if you attempt to send an e-mail through ASP.NET web form. ASP.NET 4.5 has […]

Read More »

System.Web.Mail Sample C# and VB .NET Script

The following scripts use SMTP Authentication to send mail from your script – C#: <% @Page Language=”C#” %> <% @Import Namespace=”System.Web.Mail” %> <% MailMessage mail = new MailMessage(); mail.To = “FRIEND@FRIENDSDOMAIN.COM”; mail.From = “YOU@YOURDOMAIN.COM”; mail.Subject = “this is a test email.”; mail.Body = “Some text goes here”; mail.Fields.Add(“”, “1”); //basic authentication mail.Fields.Add(“”, “YOU@YOURDOMAIN.COM”); //set your […]

Read More »