My Smtpclient is working with following setup
SmtpClient client = new SmtpClient();
client.Host = server;
client.UseDefaultCredentials = false;
client.Credentials = new NetworkCredential("username", "totallywrongpassword", "DOMAIN");
try
{
client.Send(message);
}
catch
{
// no exception is thrown, emails are send
}
I am providing invalid credentials, yet the emails are being sent.
What am I configuring wrong?
The smtp server and client are on the same local domain.