beaudetious,
There is a possibility that your local windows firewall, local policy or group policy is blocking your ability to send emails. If you have installed your "test" version on a Windows XP machine and trying to shoot it to ANY smtp server (local or remote) this policy might be blocking it.
I created a simple C# application to test each machine if I could send an email from that machine. From our company servers, we could do this just fine. However, if we did this from a test instance (a developer's machine), it failed every time. We traced this back to the group policy in place that blocked all port 25 traffic.
Hope this helps. The C# application code and the Directions to allow test emails from desktops are below.
-Ryan
Directions:
Control Panel → Windows Firewall → Advanced → Network Connection Settings → Settings → Internet Mail Server
Control Panel → Windows Firewall → Exceptions → Add Port → Type: SMTP → Port: 25
C# Test Application (Windows Application)
using
System;using
System.Collections.Generic;using
System.ComponentModel;using
System.Data;using
System.Drawing;using
System.Text;using
System.Windows.Forms;using
namespace
{
SendMailTest publicpartialclass Form1 : Form{
{
InitializeComponent();
}
{
public Form1() privatevoid button1_Click(object sender, EventArgs e) // SmtpClient is used to send the e-mail
mailClient.Send(
}
}
}
SmtpClient mailClient = newSmtpClient("[SMTP SERVER ADDRESS]");"[FROM EMAIL]", "[TO EMAIL]", "[SUBJECT]", "[BODY]"); System.Net.Mail;