I've heard that AOL has effectively blocked ports 110 and 25 for third party
mail server use. You might want to ask their support if that is the case.
http://www.corp.aol.com/contact.html
"Steve Thurston" <SThurs4415@aol.com> wrote in message
news:aaf00564.0401181211.589baae6@posting.google.c om...[color=blue]
> Hi,
>
> I'm attempting to send emails for the first time using ASP.NET, so I'm
> hoping there's just a beginner's error going on here for me. But my
> emails aren't reaching their destination, and I don't know why.
>
> My "development" machine is just my home machine. I'm connected to
> the Internet via an AOL dialup connection.
>
> I am running on XP Pro and my IIS server is (apparently) configured
> correctly to allow my home machine to send emails:
> IP Address: (All Unassigned)
> Relay restrictions: All except the list below (list is blank)
>
> (I don't leave that relay restrictions on that setting, since that
> apparently exposes my server to spammer hijacking.)
>
> My test webpage reports that the email is sent. My antivirus software
> would seem to confirm this, since it scans it as it's being sent.
>
> And yet it never reaches it's destination. I've tried to send it to
> an AOL account and a Yahoo account, with no luck.
>
> Does AOL block this sort of thing? Or can anyone think why this is
> happening, or what I can investigate to find out more information?
>
> My ASP.NET code is as follows:
>
> <%@ page language="vb" %>
>
> <%@ import namespace="System.Web.Mail" %>
>
> <script runat="server">
> sub Page_Load()
> Dim objEmail as New MailMessage()
> objEmail.To = "(My AOL account)"
> objEmail.From = "(My real website account)"
> objEmail.Subject = "Test E-mail"
> objEmail.Body = "This is a test!"
>
> SmtpMail.SmtpServer = "localhost"
>
> try
> SmtpMail.Send(objEmail)
> outError.innerHTML = "<u><b>Email sent.</b></u>"
> catch objError as Exception
> ' Display error details
> outError.innerHTML = "<u><b>Error while trying to mail
> message</b></u><br>"
> outError.innerHTML += objError.Message & "<br>"
> outError.innerHTML += "<b>Error reported by:</b> " &
> objError.Source
> end try
> end sub
> </script>
>
> <html>
>
> <body>
>
> <form id="theForm" runat="server">
> <div id="OutError" runat="server" />
> </form>
>
> </body>
>
> </html>[/color]