Manoj Bisht

Manoj Bisht

  • NA
  • 140
  • 0

Sending Mail

Sep 25 2007 9:17 AM

Hello Everyone,

I want to send the email through my ASP.NET project. And it's working at localhost when i'm taking the SMTP Server as "127.0.0.1"  but  when i'm uploading this project on server it's throwing me an error "could not access cdo.Message object" . still i've taken my SMTPServer not as "127.0.01" but still it's throwing an error 

i'm giving the url of the page where this problem is being raised....

http://www.priveejets.com/Flight_Enquiry1.aspx

in this page an auto-response is generated when a client makes an enquiry at his/her email 

 

 

MailMessage mail1=new MailMessage();

mail1.To=txtEmail.Text;

mail1.From="[email protected]";

mail1.Subject="Auto Responder";

mail1.Priority=MailPriority.High;

mail1.BodyFormat=MailFormat.Html;

mail1.Body="Thanks for the Enquiry "+"<br/>"+"We'll get you soon"+"<br/>"+"------------------"+"<br/>"+"Thanks & Regards"+"<br/>"+"Priveejets Team";

SmtpMail.SmtpServer="127.0.0.1";   or other not shown here

//SmtpMail.SmtpServer="127.0.01";

SmtpMail.Send(mail1);


Answers (4)