469,963 Members | 1,762 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,963 developers. It's quick & easy.

sending mail

hi in my asp.net apllication(c#) am working with sending mail issue..
my following below code is
System.Web.Mail.MailMessage msg = new System.Web.Mail.MailMessage ();
msg.From =smitha@gmail.com;

msg.To = shruthi@gmail.com
msg.Subject = sub;

msg.Body = body;

System.Web.Mail.SmtpMail.SmtpServer = "mywebsite.com";

System.Web.Mail.SmtpMail.Send(msg);

am getting a error message like"Could not create an object of type 'CDO.Message'. Please verify that the current platform configuration supports SMTP mail."..

please suggest me the solution
Aug 2 '07 #1
1 2566
dip_developer
648 Expert 512MB
hi in my asp.net apllication(c#) am working with sending mail issue..
my following below code is
System.Web.Mail.MailMessage msg = new System.Web.Mail.MailMessage ();
msg.From =smitha@gmail.com;

msg.To = shruthi@gmail.com
msg.Subject = sub;

msg.Body = body;

System.Web.Mail.SmtpMail.SmtpServer = "mywebsite.com";

System.Web.Mail.SmtpMail.Send(msg);

am getting a error message like"Could not create an object of type 'CDO.Message'. Please verify that the current platform configuration supports SMTP mail."..

please suggest me the solution

your error message............... "Could not create an object of type 'CDO.Message'. Please verify that the current platform configuration supports SMTP mail.".......means

1. Either you don't have the IIS SMTP Service installed or started

2. Or the ASPNET user doesn't have read+execute permissions on SystemRoot\system32\cdosys.dll

Next, you'll probably get a 'Could not 'ACCESS'..."

That means that either your SMTP server is refusing connections,
is returning a 50X error (504 Relay Restricted, etc), or something
similar.

The ASPNET user does not have permissions to access the network
(create a socket to another computer, etc) but can create sockets
to 'localhost' or '127.0.0.1' only.

You must set your SmtpMail.SmtpServer property to "localhost".
Aug 2 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by praba kar | last post: by
10 posts views Thread by Stuart Mueller | last post: by
2 posts views Thread by Mr. x | last post: by
3 posts views Thread by mfleet1973 | last post: by
4 posts views Thread by =?Utf-8?B?R3V5IENvaGVu?= | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.