Transaction failed. The server response was: Sending address not accepted due to spam filter (SOLVED)
Hello friends, this is a quick one. If you've tried to send a mail via your C# code, chances are that you might have seen this error message:" Transaction failed. The server response was: Sending address not accepted due to spam filter "... Well, sometimes in programming error messages doesn't always explain the exact problem you might be having with your code, but if you look closely to your code in relation with the given error, you will find that the problem is just right under your nose. It took me almost three hours to solve this error. The annoying part is that I spent the whole of the time trying to research something I would have solved in seconds if I had looked closely enough. SmtpClient client = new SmtpClient (); NetworkCredential Credentials = new NetworkCredential ("email", "password"); client.Credentials = Credentials; //The important line To cut the whole long story short, if you are not initializing the cr...