Here is my problem: I wrote whe following program to test if I can send email:
class Program
{
static void Main(string[] args)
{
try {
For anyone interested. I had a problem t=with this today. and found my solution was the order.
SMTPClient client = new SMTPClient();
client.UseDefaultCredentials = false; // first after declare and needs to be false.
Then:
client.Credentials = new System.Net.NetworkCredential(sMTPSettings.SMTPLogin, sMTPSettings.SMTPPassword);
Then the rest.
Hope it helps someone