Hello,
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******@mydomain.com";
string to = "my*****@xxxxxx.com";
string subject = "Subject Of";
string body = "Deneme";
SmtpMail.SmtpServer = "smtp.mydomain.com";
SmtpMail.Send(from, to, subject, body);
// Mailing