I set up my hMailServer on my windows 2008 machine, and I'm trying to send emails.
When I do it with C#
MailMessage message = new MailMessage(); message.From = new MailAddress(from, "John"); message.To.Add(new MailAddress(to)); message.Subject = subject; message.Body = body; SmtpClient client = new SmtpClient("mail.example.com"); client.Credentials = new System.Net.NetworkCredential("[email protected]", "password"); client.Send(message); But when I try to send emails with a windows live email client, it gives me an error
The connection to the server has failed
All the settings are exactly the same. I tried several email clients, but it doesn't work. It never happened to me before. I just moved from one machine to another, and got this problem.
I can receive mail in the client though...