Click here to Skip to main content
15,885,366 members

Comments by Rohit kumar6210 (Top 13 by date)

Rohit kumar6210 25-May-17 4:00am View    
when max marks is 1000 and entered obtained marks is more than 1000 it's doesn't work...
Rohit kumar6210 25-May-17 4:00am View    
when max marks is 1000 and entered obtained marks is more than 1000 it's doesn't work...
Rohit kumar6210 25-May-17 3:55am View    
when max marks is 1000 and entered obtained marks is more than 1000 it's doesn't work...
Rohit kumar6210 4-Jan-17 1:35am View    
System.Web.Mail.MailMessage Mail = new System.Web.Mail.MailMessage();
SmtpClient smtp = new SmtpClient();

emailId = txtEmail.Text.Trim();
Mail.Body = strFormat.ToString();

//Mail.IsBodyHtml = true;


Mail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserver"] = ("smtp.gmail.com");

Mail.Fields["http://schemas.microsoft.com/cdo/configuration/sendusing"] = 2;

Mail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserverport"] = "465";

Mail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpusessl"] = "true";

Mail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"] = 1;

Mail.Fields["http://schemas.microsoft.com/cdo/configuration/sendusername"] = "info@legalrelief.in";

Mail.Fields["http://schemas.microsoft.com/cdo/configuration/sendpassword"] = "1236547899";

Mail.To = txtEmail.Text.Trim();

Mail.From = "info@legalrelief.in";

Mail.Subject = "Confirmation email for account activation";

Mail.Body = strFormat.ToString();

Mail.BodyFormat = System.Web.Mail.MailFormat.Html;

System.Web.Mail.SmtpMail.SmtpServer = "smtp.gmail.com";

System.Web.Mail.SmtpMail.Send(Mail);


got the solution the above code is working properly... thanks
Rohit kumar6210 4-Jan-17 1:35am View    
System.Web.Mail.MailMessage Mail = new System.Web.Mail.MailMessage();
SmtpClient smtp = new SmtpClient();

emailId = txtEmail.Text.Trim();
Mail.Body = strFormat.ToString();

//Mail.IsBodyHtml = true;


Mail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserver"] = ("smtp.gmail.com");

Mail.Fields["http://schemas.microsoft.com/cdo/configuration/sendusing"] = 2;

Mail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpserverport"] = "465";

Mail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpusessl"] = "true";

Mail.Fields["http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"] = 1;

Mail.Fields["http://schemas.microsoft.com/cdo/configuration/sendusername"] = "info@legalrelief.in";

Mail.Fields["http://schemas.microsoft.com/cdo/configuration/sendpassword"] = "1236547899";

Mail.To = txtEmail.Text.Trim();

Mail.From = "info@legalrelief.in";

Mail.Subject = "Confirmation email for account activation";

Mail.Body = strFormat.ToString();

Mail.BodyFormat = System.Web.Mail.MailFormat.Html;

System.Web.Mail.SmtpMail.SmtpServer = "smtp.gmail.com";

System.Web.Mail.SmtpMail.Send(Mail);


got the solution the above code is working properly... thanks