Hi,
From what I understand there is no SMTP server in IIS on Vista. I am working on a project which will require me to send email. I'd like to start with some simple prototypes on my development box which is running Vista Ultimate. I'm not connected to a corporate network where I can just use an exchange server someplace.
I realize that there are several smtp servers that I can install, but I'm not sure what to do once I install one. I know how to write the code to send the email, but I don't know what kind of configuration needs to be done to use the smtp server.
What I'd like is a clear description of what to do once I get an smtp server installed on my Vista box.
Thanks!
UPDATE: I downloaded this smtp server: http://softstack.com/freesmtp.html
Here's what my code looks like:
class Program
{
static void Main(string[] args)
{
MailMessage message = new MailMessage();
message.From = new MailAddress("[email protected]");
message.To.Add(new MailAddress("[email protected]"));
//message.To.Add(new MailAddress("[email protected]"));
//message.CC.Add(new MailAddress("[email protected]"));
message.Subject = "This is my subject";
message.Body = "This is the content";
SmtpClient client = new SmtpClient("localhost");
client.Send(message);
Console.ReadLine();
}
}
When I have this smtp server running and I execute my console app, it hands on the client.send line. The smtp server looks like this:
http://screencast.com/t/2B7jv0bE14
After a while the client.send times out.
Any ideas what's going wrong now?
Thanks!