Click here to Skip to main content
15,929,812 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPlz Help ME..... Pin
pradeep kumarappagari13-Jun-07 22:49
pradeep kumarappagari13-Jun-07 22:49 
AnswerRe: Plz Help ME..... Pin
Devkranth Kishore Vanja14-Jun-07 0:53
Devkranth Kishore Vanja14-Jun-07 0:53 
GeneralRe: Plz Help ME..... Pin
pradeep kumarappagari14-Jun-07 1:02
pradeep kumarappagari14-Jun-07 1:02 
Questionrefresh the page in javascript Pin
saravanan0513-Jun-07 22:39
saravanan0513-Jun-07 22:39 
AnswerRe: refresh the page in javascript Pin
Sylvester george13-Jun-07 23:06
Sylvester george13-Jun-07 23:06 
QuestionSMTP Exception Pin
DKalepu13-Jun-07 22:23
DKalepu13-Jun-07 22:23 
AnswerRe: SMTP Exception Pin
Steven J Jowett13-Jun-07 22:28
Steven J Jowett13-Jun-07 22:28 
GeneralRe: SMTP Exception Pin
DKalepu13-Jun-07 22:37
DKalepu13-Jun-07 22:37 
Here is my Code:::



protected void btnSubmit_Click(object sender, EventArgs e)
{

SmtpClient smtpClient = new SmtpClient();
MailMessage objMail = new MailMessage();

MailAddress objMail_Email = new MailAddress(lblEmail1.Text);

objMail.From = objMail_Email;
objMail.To.Add("toemail@.. .com");
objMail.Subject = "Form Submission";
objMail.Body = "<html><head><title></title></head><body>" + "<p>Company : " + lblCompany1.Text + "</p>" + "<p>Address : " + lblAddress1.Text + "</p>" + "<p> Telephone :" + lblTelephone1.Text + "</p>" + "<p> Fax :" + lblFax1.Text + "</p>" + "<p> Email : " + lblEmail1.Text + "</p>" + "<p>Comments : " + lblComments1.Text + "</p>" + "</body></html>";
objMail.Priority = MailPriority.High;
smtpClient.Host = "mail.domain.com";
smtpClient.Credentials = new System.Net.NetworkCredential("username@domain.com", "password");
try
{
smtpClient.EnableSsl = false;
smtpClient.Send(objMail);
}
catch (Exception exc)
{
Response.Write("Send failure: " + exc.ToString());
}

Response.Write("Your mail has been sent");

}


_____________
AnswerRe: SMTP Exception Pin
DKalepu14-Jun-07 1:15
DKalepu14-Jun-07 1:15 
QuestionPerformance Imporovemnt of Website Pin
ShuklaGirish13-Jun-07 22:13
ShuklaGirish13-Jun-07 22:13 
AnswerRe: Performance Imporovemnt of Website Pin
Steven J Jowett13-Jun-07 22:29
Steven J Jowett13-Jun-07 22:29 
GeneralRe: Performance Imporovemnt of Website Pin
ShuklaGirish13-Jun-07 23:22
ShuklaGirish13-Jun-07 23:22 
GeneralRe: Performance Imporovemnt of Website Pin
Steven J Jowett13-Jun-07 23:47
Steven J Jowett13-Jun-07 23:47 
QuestionAJAX Helpme out Pin
kumarjammula13-Jun-07 22:09
kumarjammula13-Jun-07 22:09 
AnswerRe: AJAX Helpme out Pin
Andy *M*13-Jun-07 23:13
Andy *M*13-Jun-07 23:13 
GeneralRe: AJAX Helpme out Pin
kumarjammula13-Jun-07 23:15
kumarjammula13-Jun-07 23:15 
QuestionTreeview navigation controll Pin
vickyshah13-Jun-07 22:02
vickyshah13-Jun-07 22:02 
AnswerRe: Treeview navigation controll Pin
Venkatesh Mookkan14-Jun-07 1:51
Venkatesh Mookkan14-Jun-07 1:51 
GeneralRe: Treeview navigation controll Pin
vickyshah14-Jun-07 1:56
vickyshah14-Jun-07 1:56 
QuestionHow to end Cookie's Session? Pin
vijay_8313-Jun-07 21:51
vijay_8313-Jun-07 21:51 
Questiondifference between winform and webform datagrid Pin
zareee13-Jun-07 21:48
zareee13-Jun-07 21:48 
AnswerRe: difference between winform and webform datagrid Pin
morteza5713-Jun-07 22:47
morteza5713-Jun-07 22:47 
QuestionGet Calendar control with a Button click? [modified] Pin
chand1013-Jun-07 21:39
chand1013-Jun-07 21:39 
QuestionValidation Summary Control - - Unable to control the order of messages Pin
dhulipudi13-Jun-07 21:28
dhulipudi13-Jun-07 21:28 
AnswerRe: Validation Summary Control - - Unable to control the order of messages Pin
Sathesh Sakthivel13-Jun-07 21:30
Sathesh Sakthivel13-Jun-07 21:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.