To send mail call the below method in .Net.
1)
using System.Web.Mail;
public Boolean SendMail(string pstrFrom, string pstrTo, string pstrSubject, string pstrBody)
{
Boolean Result = false;
try
{
MailMessage omsg = new MailMessage();
omsg.From = pstrFrom;
omsg.To = pstrTo;
omsg.Subject = pstrSubject;
omsg.Body = pstrBody;
omsg.Priority = MailPriority.High;
omsg.BodyFormat = MailFormat.Html;
SmtpMail.SmtpServer = "";
SmtpMail.Send(omsg);
Result = true;
}
catch (Exception ex)
{
Result = false;
AppLogger.LogError("SendMail(4 parameters): " + ex.Message, AppLogger.Severity.Error);
}
return Result;
}
2)To open a outlook.
ஏஞ்சல்
என்னை பற்றி
Google reader
Categories
- .Net (9)
- .Net Crystal Report (1)
- .Net GridView (3)
- Articles (5)
- Log File .Net (1)
- Sharepoint (2)
- Sitefinity 3.7 (3)
- SQL (5)
- Technical Question and Ans (3)
- Validation (1)
- XML (2)
Friday, July 10, 2009
Open outlook and add reciepient emailid
When hearts listen
angel sing.If you seek an angel with an open heart...
You shall always find loved one