Re: Mail sent through IIS virtual SMTP server not arriving



Thanks, Bruce.

I know that I won't have any problem for my application in sending and
receiving email if I simply use the SMTP server of my ISP. I tried it,
and it worked perfectly fine. And in this case, I don't have do
anything about the virtual SMTP server on my IIS 5.1.

But, I am trying to test if I can send email in my web application
through the IIS virtual SMTP server only.

So if I end up having to forward to my ISP's SMTP server, it'll beat my
objective, plus, I could have just used my ISP's SMTP service.

So, any idea about why I am not receiving the mail "sent" from the
virtual SMTP? By quoting "sent", I meant that at least it looks like
to have been sent.

Bruce Barker wrote:
you probably need to configure the smtp server to correctly forward mail to
your isp's smtp server. does the isp smtp require authenication? does it
require the from match authenication?

-- bruce (sqlwork.com)


<antonyliu2002@xxxxxxxxx> wrote in message
news:1141326363.348796.259540@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I've set up the virtual smtp server on my IIS 5.1 like so:

1. Assign IP address to "All Unassigned", and listen to port 25.
2. Access Connection granted to "127.0.0.1".
3. Relay only allow "127.0.0.1".
4. Authentication: "Anonymous access" only.
5. Outbound connection listen to TCP 25.

Besides,

6. I've opened up port 25 in my Linksys WRT45G wireless router.
7. I've made port 25 an exception in my WinXP Pro built-in firewall.
8. Unblocked port 25 in McAfee 8.0 enterprise edition.

I used the following code, and

Response.Write("Your E-mail has been sent sucessfully - Thank You")

is executed and I don't see any exception.

However, the mail never arrived!

So, what's the problem?

Is it possible to configure the virtual SMTP server to listen to a
non-standard port for just sending email? I heard that my ISP SBC DSL
blocks port 25. If this is possible, how to let it listen to a
different port?

***** The code I use ***********

<%@ Page Language="VB" Debug="true" %>
<%@ Import Namespace="System.Web.Mail" %>

<script runat="server">

Sub btnSubmit_Click(sender as object, e as EventArgs)
If Page.IsValid Then
' Create a new blank MailMessage
Dim mailMessage As MailMessage = new MailMessage ()
mailMessage.From = txtFrom.Text
mailMessage.To = txtTo.Text
mailMessage.Cc = txtCc.Text
mailMessage.Subject = "Test SMTP Message Send using port"
mailMessage.Body = txtName.Text & ", " &txtComments.Text
SmtpMail.SmtpServer = "127.0.0.1"

Try
SmtpMail.Send(mailMessage)
Response.Write("Your E-mail has been sent sucessfully - Thank You")
Catch ex As Exception
Response.Write(("The following exception occurred: " +
ex.ToString()))
'check the InnerException
While Not (ex.InnerException Is Nothing)
Response.Write("--------------------------------")
Response.Write(("The following InnerException reported: "
+ ex.InnerException.ToString()))
ex = ex.InnerException
End While
End Try
End If
End Sub
</script>

The HTML that follows this code snippet is not pasted.


.



Relevant Pages

  • Re: Wi-fi and SMTP
    ... send emails although I can receive them fine. ... the relevant SMTP server - is that correct? ... least one ISP that I use will not allow use of any ... the hotpsot is blocking port 25 (this is an anti-spam measure some ISPs ...
    (alt.internet.wireless)
  • Re: Windows mail send/receive
    ... your mail provider or also your ISP. ... Ask tdcmail.se if they have a port other than '25' for SMTP. ... Substitute the SMTP server belonging to your ISP. ... I deleted the account and re-installed but no luck. ...
    (microsoft.public.windows.vista.mail)
  • Re: OT?? : VDQ portability
    ... I can walk up to any unoccupied machine in town, ... The ISP may block access to any SMTP server other than its own. ... Your ISP may block access to its SMTP servers from a "foreign" ISP. ... The workaround is to find an email provider with authenticated SMTP, preferably on a port other than 25. ...
    (comp.mail.pine)
  • Re: Mail sent through IIS virtual SMTP server not arriving
    ... This class is new in the .NET Framework version 2.0. ... //to change the port, ... view the Properties of the Default SMTP Server; ... Juan T. Llibre, asp.net MVP ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Sending email problem
    ... Check to make sure you are not dropping packets to port 113. ... Im trying to contact my ISP and ask them about the SMTP ... >> with SMTP server itself and it does not accept connections at that time. ...
    (RedHat)