Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
I did some testing by sending an email and after a few times (probably exaggerated) I started getting the following message-

"Transaction failed. The server response was: The IP address of the sender (******) was found in a DNS blacklist database and was therefore refused."}

What I have tried:

try
{
    MailMessage msg = new MailMessage();

    msg.From = new MailAddress("***", "***");

    msg.To.Add("***");
    msg.IsBodyHtml = true;
    msg.Subject = subject1;
    msg.Body = body1;

    var client = new SmtpClient("***");

    client.Send(msg);
}
catch (Exception ex)
{
    Console.WriteLine(ex.Message);
}
Posted
Updated 16-Sep-20 10:27am

Quote:
How do I get off the dns blacklist?

This not a programming problem, it is a behavior (yours) problem, and you have been black listed for some time.
- You can wait until removed from blacklist.
- You can apologize to webmaster and ask remove from blacklist.
If you get removed from blacklist only to send mails again, it will stop again soon.
 
Share this answer
 
Thank you,

- This comment has been around for several months ...

- Which webmaster should I ask for?
From the server where the email is located?
 
Share this answer
 
Comments
Patrice T 17-Sep-20 3:17am    
Use Have a Question or Comment? under Solution to discuss with author.

The webmaster of the server that blacklisted you.
Member 14683862 17-Sep-20 3:58am    
I'm the webmaster. And when I do DEBUGGING on the site shows me this error in the code.

So maybe the list is on the server I host the site on?
Richard MacCutchan 17-Sep-20 3:17am    
Ask at the site that is blacklisting you (the email recipient), they own the server that generates the message.
Member 14683862 17-Sep-20 3:59am    
I'm the webmaster. And when I do DEBUGGING on the site shows me this error in the code.

So maybe the list is on the server I host the site on?
Richard MacCutchan 17-Sep-20 4:04am    
The message is pretty clear: The IP address of the sender (******) was found in a DNS blacklist database and was therefore refused.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900