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 "+"
"+"We'll get you soon"+"
"+"------------------"+"
"+"Thanks & Regards"+"
"+"Priveejets Team";
SmtpMail.SmtpServer="127.0.0.1"; or other not shown here
//SmtpMail.SmtpServer="127.0.01";SmtpMail.Send(mail1);
Manoj BishtPosted Sep 27, 2007, 2:27 AM
Hello .....,
I want to send the email through my ASP.NET(1.1) 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
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 "+"
"+"We'll get you soon"+"
"+"------------------"+"
"+"Thanks & Regards"+"
"+"Priveejets Team";
SmtpMail.SmtpServer="mail.saamstesting.com";
SmtpMail.Send(mail1);Manoj BishtPosted Sep 26, 2007, 12:44 AM
Well Friend you asked me to specify the Port No. and the authentication. Actually i'm not getting these two plz explain these twos........
and also i've given my code here. Would you let me know where i should make change in my code as well............
Thnx
....
kavitaPosted Sep 26, 2007, 12:43 AM
Can u give me a complete program that is ready to upload on server?
thanks in advance!!!
abhishek trivediPosted Sep 26, 2007, 12:32 AM
Hi!!
you are missing the port number you have to use which is the number of your mailserver alllow access to send mail.
apart from that you also need to mention authentication means what kind of authentication you have to access to that mail server.
and also make sure the mail server name is mentioned.