use this name space using System.Web.Mail;
public static void MailMessage(string body, string subject, string fromMailID, string toMailID)
{
MailMessage msgMail = new MailMessage();
msgMail.Priority = MailPriority.High;
msgMail.BodyFormat = MailFormat.Html;
msgMail.Subject = subject;
msgMail.To = toMailID;
msgMail.Body = body;
msgMail.From = fromMailID;
SmtpMail.Send(msgMail);
}
send Multiple Mail ::
public static void SendMail(string body, string subject, string fromMailID, string toMailID, string bcc)
{
MailMessage msgMail = new MailMessage();
msgMail.Priority = MailPriority.High;
msgMail.BodyFormat = MailFormat.Html;
msgMail.Subject = subject;
msgMail.To = toMailID;
msgMail.Body = body;
msgMail.From = fromMailID;
msgMail.Bcc = bcc;
SmtpMail.Send(msgMail);
}
Tuesday, June 9, 2009
Subscribe to:
Post Comments (Atom)
Popular Posts
-
Recently I encountered a case when I knew much more about the data than the optimizer. Originally the performance was horrible, this is why...
-
ASP.NET 4 adds built-in support for using routing with Web Forms. Routing lets you configure an application to accept request URLs that do...
-
Introduction Web Service is known as the software program. These services use the XML to exchange the information with the other software wi...
-
Most experienced developers will tell you that end users tend to "judge an application by its cover". In other words, they don...
-
Introduction Advanced Integration is for sellers who want more flexibility when creating payment buttons. Advanced Integration facilitates t...
No comments:
Post a Comment