By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,330 Members | 1,365 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,330 IT Pros & Developers. It's quick & easy.

Recipient address rejected: Access denied

P: n/a

I m developing a web application and my site is placed on a hosting company.

The problem is, When I try to run this code, This error code returns.

"Recipient Address Rejected: Access Denied"

I can send via outlook using below smtp server address, but by c# code,
above error returns.....

My Code Part is :
// Mailing

string from = "re******";
string to = "my*****";
string subject = "Subject Of";
string body = "Deneme";
SmtpMail.SmtpServer = "";
SmtpMail.Send(from, to, subject, body);

// Mailing
May 19 '06 #1
Share this Question
Share on Google+
1 Reply

P: n/a
probably you execute code in context of user who cannot send messages
(aspnet). you should set Credentials object;

I hope this helps
Galin Iliev[MCSD.NET]

May 19 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.