View Single Post
  #1 (permalink)  
Old September 28th, 2007, 08:50 AM
Manoj Bisht Manoj Bisht is offline
Authorized User
Points: 373, Level: 6
Points: 373, Level: 6 Points: 373, Level: 6 Points: 373, Level: 6
Activity: 2%
Activity: 2% Activity: 2% Activity: 2%
 
Join Date: Apr 2007
Location: Delhi, Delhi, India.
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default Email in ASP.NET

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

Here is my coding


MailMessage mail1=new MailMessage();

mail1.To=txtEmail.Text;

mail1.From="mail@priveejets.com";

mail1.Subject="Auto Responder";

mail1.Priority=MailPriority.High;

mail1.BodyFormat=MailFormat.Html;

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


SmtpMail.SmtpServer="mail@saamstesting.com"

//SmtpMail.SmtpServer="127.0.01";

SmtpMail.Send(mail1);


Reply With Quote