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="
[email protected]";
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="
[email protected]"
//SmtpMail.SmtpServer="127.0.01";
SmtpMail.Send(mail1);