/// <Summary>
///Send email
/// </Summary>
/// <Param> </param>
/// <Param> </param>
Private void Sendmail (String title, string body)
{
System. xml. xmldocument Doc = new system. xml. xmldocument ();
Systemconfig Config = new systemconfig ();
Doc. Load (application. startuppath + constants. configfilename );
For (INT I = 0; I <systemconfig. configitems. getlength (0); I ++)
{
Config [systemconfig. configitems [I, 1] = Doc. selectsinglenode (systemconfig. configitems [I, 0]). innertext;
}
Mailmessage mail = new mailmessage ();
Mail. From = new mailaddress (config ["from"], config ["from"]);
Mail. to. Add (config ["to"]);
Mail. CC. Add (config ["cc"]);
Mail. Subject = title;
Mail. Body = body;
//Email server and Port
Smtpclient SMTP = new smtpclient (config ["host"], 25 );
SMTP. usedefacrecredentials = true;
//Specify sending Method
SMTP. deliverymethod = smtpdeliverymethod. Network;
//Specify logon name and password
SMTP. Credentials = new system. net. networkcredential (config ["smtpusername"], config ["smtppassword"]);
SMTP. Send (Mail );
}