This Application is running in my system but when i this application on server not working. and one more doubt is if istop SMTP Server in my System not working , it has to work even i stoped SMTP, Any way plz give ur solution plz Very Urgent , any any modification require in my code re adjust plz
private void SendMain() {
string strto = "snimma@ajle.com"; string strSubject = txtFirstName.Text + " "+"Details"; string bodymsg = "FirstName :" + txtFirstName.Text + "" + "\n" + "LastName :" +txtLastName.Text + "" + "\n" + "Email :" + txtEmail.Text + "" + "\n" + "Phone Number :" + txtPhone.Text + "" + "\n" + "Location preference :" +dllLocation.SelectedItem.Text+ " " + "\n" + "Funded By :" + dllFunded.SelectedItem.Text + "" + "\n" + "Programs of Study :" + dllStudy.SelectedItem.Text+ "" + "\n" + "How did you know about us?:" +dllKnowAboutUs.SelectedItem.Text+ ""+ "\n" + "Course of your interest :" + txtCourses.Text + "" + "\n" + "Comments:" + txtComments.Text + ""; SmtpMail.Send(txtEmail.Text, strto, strSubject, bodymsg); SmtpMail.Send(strto, txtEmail.Text, "REG::reply", "thanks for your interesting"); Response.Redirect("thankyou.aspx");
}
|
| Author: Meetu Choudhary 07 Oct 2008 | Member Level: Gold | Rating: Points: 3 |
If it is not running on your server then i would suggest you to ask your server provider to check whether the SMTP is configured properly or not
as far as my knowledge i don't think it will work unless SMTP is configured..
Because the code i have provided to you is working on server and my system both
-- Thanks and Regards Meetu Choudhary
|