Cannot send email using SMTP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Jones

    Cannot send email using SMTP

    We have developed a commercial ASP.net application
    (personal nutrition management and tracking); we want to
    send smtp email from within it.

    For our development box, we use WinXP Pro, IIS 5.5,
    VisualStudio200 2, VB as programing language. Our
    test/development version of the web app as hosted on
    our "localhost" works fine; our "Default SMTP Virtual
    Server" is running (per the IIS console).

    Our simple test page (EmailTest.aspx )is in a separate
    project, has only a single button and we are trying to
    use the following code on the EmailTest.aspx. vb:

    Private Sub Button1_Click(B yVal sender As System.Object,
    ByVal e As System.EventArg s) Handles Button1.Click

    Dim OK As New Mail.MailMessag e()
    OK.From = "bobjones@toad. net"
    OK.Subject = "Test"
    OK.Body = "Trying To Send Email"
    OK.To = "bob@cookbookpl us.com"
    Mail.SmtpMail.S mtpServer = "localhost"

    Mail.SmtpMail.S end(OK)

    End Sub

    The line Mail.SmtpMail.S end(OK) always throws an
    exception; we always get this error:

    The server rejected one or more recipient addresses. The
    server response was: 550 5.7.1 Unable to relay for
    bob@cookbookplu s.com.com .

    It does not matter who the recipient is, either. We are
    connected to the internet via DSL. Otherwise, everything
    else related to our stuff seems to work perfectly.

    Have spent way too many man hours researching help files,
    MSDN KnowledgeBase, etc. No luck. I am sure we are
    doing soming wrong, but have no idea what.

    Our only prior experience with email code has been with
    MS Access using VBA. We know this is our mistake, just do
    not know how to help ourselves. Also, the web app is our
    first try using ASP.net, etc. Generally, the app works
    works great!

    Can anyone please help; or provide a good example we can
    follow?

    FYI, our web site is http://www.cookbookplus.com

    If curious, you can see the app using
    the "CookBookPlusOn TheWeb" link on the home page.

    Or use
    http://www.cookbookplus.com/CookBook...heWeb/LogInWeb.
    aspx for a direct link.

    The app is hosted on a Windows Server 2003 system so
    whatever we do must work with IIS 6 when we deploy.

    Thank you.
    Bob Jones
    bobjones@toad.n et
    bob@cookbookplu s.com
    4106267564

  • George Durzi

    #2
    Re: Cannot send email using SMTP

    what happens if you change
    Mail.SmtpMail.S mtpServer = "localhost"
    to
    Mail.SmtpMail.S mtpServer = "xxx.xxx.xxx.xx x"
    being the IP address

    Also, I am running an IIS server that uses SMTP to send email in an
    evironment where there is an exchange server. We had to setup something in
    the exchange server to allow the IIS email to send SMTP mail.

    I think that might be your issue.

    "Bob Jones" <bobjones@toad. net> wrote in message
    news:0aee01c35d 2b$ef6de740$a00 1280a@phx.gbl.. .[color=blue]
    > We have developed a commercial ASP.net application
    > (personal nutrition management and tracking); we want to
    > send smtp email from within it.
    >
    > For our development box, we use WinXP Pro, IIS 5.5,
    > VisualStudio200 2, VB as programing language. Our
    > test/development version of the web app as hosted on
    > our "localhost" works fine; our "Default SMTP Virtual
    > Server" is running (per the IIS console).
    >
    > Our simple test page (EmailTest.aspx )is in a separate
    > project, has only a single button and we are trying to
    > use the following code on the EmailTest.aspx. vb:
    >
    > Private Sub Button1_Click(B yVal sender As System.Object,
    > ByVal e As System.EventArg s) Handles Button1.Click
    >
    > Dim OK As New Mail.MailMessag e()
    > OK.From = "bobjones@toad. net"
    > OK.Subject = "Test"
    > OK.Body = "Trying To Send Email"
    > OK.To = "bob@cookbookpl us.com"
    > Mail.SmtpMail.S mtpServer = "localhost"
    >
    > Mail.SmtpMail.S end(OK)
    >
    > End Sub
    >
    > The line Mail.SmtpMail.S end(OK) always throws an
    > exception; we always get this error:
    >
    > The server rejected one or more recipient addresses. The
    > server response was: 550 5.7.1 Unable to relay for
    > bob@cookbookplu s.com.com .
    >
    > It does not matter who the recipient is, either. We are
    > connected to the internet via DSL. Otherwise, everything
    > else related to our stuff seems to work perfectly.
    >
    > Have spent way too many man hours researching help files,
    > MSDN KnowledgeBase, etc. No luck. I am sure we are
    > doing soming wrong, but have no idea what.
    >
    > Our only prior experience with email code has been with
    > MS Access using VBA. We know this is our mistake, just do
    > not know how to help ourselves. Also, the web app is our
    > first try using ASP.net, etc. Generally, the app works
    > works great!
    >
    > Can anyone please help; or provide a good example we can
    > follow?
    >
    > FYI, our web site is http://www.cookbookplus.com
    >
    > If curious, you can see the app using
    > the "CookBookPlusOn TheWeb" link on the home page.
    >
    > Or use
    > http://www.cookbookplus.com/CookBook...heWeb/LogInWeb.
    > aspx for a direct link.
    >
    > The app is hosted on a Windows Server 2003 system so
    > whatever we do must work with IIS 6 when we deploy.
    >
    > Thank you.
    > Bob Jones
    > bobjones@toad.n et
    > bob@cookbookplu s.com
    > 4106267564
    >[/color]


    Comment

    • Bob Jones

      #3
      Re: Cannot send email using SMTP

      Hi George,

      Thanks for the reply; but no luck.

      Tried using our IP instead of "localhost" ; get this error
      instead: The transport failed to connect to the server.

      No Exchange Server involvement here possible either as we
      do not use it at all.

      I still need help.

      Bob
      [color=blue]
      >-----Original Message-----
      >what happens if you change
      >Mail.SmtpMail. SmtpServer = "localhost"
      >to
      >Mail.SmtpMail. SmtpServer = "xxx.xxx.xxx.xx x"
      >being the IP address
      >
      >Also, I am running an IIS server that uses SMTP to send[/color]
      email in an[color=blue]
      >evironment where there is an exchange server. We had to[/color]
      setup something in[color=blue]
      >the exchange server to allow the IIS email to send SMTP[/color]
      mail.[color=blue]
      >
      >I think that might be your issue.
      >
      >"Bob Jones" <bobjones@toad. net> wrote in message
      >news:0aee01c35 d2b$ef6de740$a0 01280a@phx.gbl. ..[color=green]
      >> We have developed a commercial ASP.net application
      >> (personal nutrition management and tracking); we want[/color][/color]
      to[color=blue][color=green]
      >> send smtp email from within it.
      >>
      >> For our development box, we use WinXP Pro, IIS 5.5,
      >> VisualStudio200 2, VB as programing language. Our
      >> test/development version of the web app as hosted on
      >> our "localhost" works fine; our "Default SMTP Virtual
      >> Server" is running (per the IIS console).
      >>
      >> Our simple test page (EmailTest.aspx )is in a separate
      >> project, has only a single button and we are trying to
      >> use the following code on the EmailTest.aspx. vb:
      >>
      >> Private Sub Button1_Click(B yVal sender As[/color][/color]
      System.Object,[color=blue][color=green]
      >> ByVal e As System.EventArg s) Handles Button1.Click
      >>
      >> Dim OK As New Mail.MailMessag e()
      >> OK.From = "bobjones@toad. net"
      >> OK.Subject = "Test"
      >> OK.Body = "Trying To Send Email"
      >> OK.To = "bob@cookbookpl us.com"
      >> Mail.SmtpMail.S mtpServer = "localhost"
      >>
      >> Mail.SmtpMail.S end(OK)
      >>
      >> End Sub
      >>
      >> The line Mail.SmtpMail.S end(OK) always throws an
      >> exception; we always get this error:
      >>
      >> The server rejected one or more recipient addresses.[/color][/color]
      The[color=blue][color=green]
      >> server response was: 550 5.7.1 Unable to relay for
      >> bob@cookbookplu s.com.com .
      >>
      >> It does not matter who the recipient is, either. We[/color][/color]
      are[color=blue][color=green]
      >> connected to the internet via DSL. Otherwise,[/color][/color]
      everything[color=blue][color=green]
      >> else related to our stuff seems to work perfectly.
      >>
      >> Have spent way too many man hours researching help[/color][/color]
      files,[color=blue][color=green]
      >> MSDN KnowledgeBase, etc. No luck. I am sure we are
      >> doing soming wrong, but have no idea what.
      >>
      >> Our only prior experience with email code has been with
      >> MS Access using VBA. We know this is our mistake, just[/color][/color]
      do[color=blue][color=green]
      >> not know how to help ourselves. Also, the web app is[/color][/color]
      our[color=blue][color=green]
      >> first try using ASP.net, etc. Generally, the app works
      >> works great!
      >>
      >> Can anyone please help; or provide a good example we[/color][/color]
      can[color=blue][color=green]
      >> follow?
      >>
      >> FYI, our web site is http://www.cookbookplus.com
      >>
      >> If curious, you can see the app using
      >> the "CookBookPlusOn TheWeb" link on the home page.
      >>
      >> Or use
      >>[/color][/color]
      http://www.cookbookplus.com/CookBook...heWeb/LogInWeb.[color=blue][color=green]
      >> aspx for a direct link.
      >>
      >> The app is hosted on a Windows Server 2003 system so
      >> whatever we do must work with IIS 6 when we deploy.
      >>
      >> Thank you.
      >> Bob Jones
      >> bobjones@toad.n et
      >> bob@cookbookplu s.com
      >> 4106267564
      >>[/color]
      >
      >
      >.
      >[/color]

      Comment

      • MS News \(MS LVP\)

        #4
        Re: Cannot send email using SMTP

        "mail.yourSMTPD omainNameHere.c om"
        "smtp.yourSMTPD omainNameHere.c om"

        or try blank ""

        "Bob Jones" <bobjones@toad. net> wrote in message
        news:0aee01c35d 2b$ef6de740$a00 1280a@phx.gbl.. .[color=blue]
        > We have developed a commercial ASP.net application
        > (personal nutrition management and tracking); we want to
        > send smtp email from within it.
        >
        > For our development box, we use WinXP Pro, IIS 5.5,
        > VisualStudio200 2, VB as programing language. Our
        > test/development version of the web app as hosted on
        > our "localhost" works fine; our "Default SMTP Virtual
        > Server" is running (per the IIS console).
        >
        > Our simple test page (EmailTest.aspx )is in a separate
        > project, has only a single button and we are trying to
        > use the following code on the EmailTest.aspx. vb:
        >
        > Private Sub Button1_Click(B yVal sender As System.Object,
        > ByVal e As System.EventArg s) Handles Button1.Click
        >
        > Dim OK As New Mail.MailMessag e()
        > OK.From = "bobjones@toad. net"
        > OK.Subject = "Test"
        > OK.Body = "Trying To Send Email"
        > OK.To = "bob@cookbookpl us.com"
        > Mail.SmtpMail.S mtpServer = "localhost"
        >
        > Mail.SmtpMail.S end(OK)
        >
        > End Sub
        >
        > The line Mail.SmtpMail.S end(OK) always throws an
        > exception; we always get this error:
        >
        > The server rejected one or more recipient addresses. The
        > server response was: 550 5.7.1 Unable to relay for
        > bob@cookbookplu s.com.com .
        >
        > It does not matter who the recipient is, either. We are
        > connected to the internet via DSL. Otherwise, everything
        > else related to our stuff seems to work perfectly.
        >
        > Have spent way too many man hours researching help files,
        > MSDN KnowledgeBase, etc. No luck. I am sure we are
        > doing soming wrong, but have no idea what.
        >
        > Our only prior experience with email code has been with
        > MS Access using VBA. We know this is our mistake, just do
        > not know how to help ourselves. Also, the web app is our
        > first try using ASP.net, etc. Generally, the app works
        > works great!
        >
        > Can anyone please help; or provide a good example we can
        > follow?
        >
        > FYI, our web site is http://www.cookbookplus.com
        >
        > If curious, you can see the app using
        > the "CookBookPlusOn TheWeb" link on the home page.
        >
        > Or use
        > http://www.cookbookplus.com/CookBook...heWeb/LogInWeb.
        > aspx for a direct link.
        >
        > The app is hosted on a Windows Server 2003 system so
        > whatever we do must work with IIS 6 when we deploy.
        >
        > Thank you.
        > Bob Jones
        > bobjones@toad.n et
        > bob@cookbookplu s.com
        > 4106267564
        >[/color]


        Comment

        • George Durzi

          #5
          Re: Cannot send email using SMTP

          check every folder in your \inetpub\mailro ot directory.
          Is the message getting stuck there?


          "Bob Jones" <bobjones@toad. net> wrote in message
          news:032b01c35d 30$1cebba90$a60 1280a@phx.gbl.. .[color=blue]
          > Hi George,
          >
          > Thanks for the reply; but no luck.
          >
          > Tried using our IP instead of "localhost" ; get this error
          > instead: The transport failed to connect to the server.
          >
          > No Exchange Server involvement here possible either as we
          > do not use it at all.
          >
          > I still need help.
          >
          > Bob
          >[color=green]
          > >-----Original Message-----
          > >what happens if you change
          > >Mail.SmtpMail. SmtpServer = "localhost"
          > >to
          > >Mail.SmtpMail. SmtpServer = "xxx.xxx.xxx.xx x"
          > >being the IP address
          > >
          > >Also, I am running an IIS server that uses SMTP to send[/color]
          > email in an[color=green]
          > >evironment where there is an exchange server. We had to[/color]
          > setup something in[color=green]
          > >the exchange server to allow the IIS email to send SMTP[/color]
          > mail.[color=green]
          > >
          > >I think that might be your issue.
          > >
          > >"Bob Jones" <bobjones@toad. net> wrote in message
          > >news:0aee01c35 d2b$ef6de740$a0 01280a@phx.gbl. ..[color=darkred]
          > >> We have developed a commercial ASP.net application
          > >> (personal nutrition management and tracking); we want[/color][/color]
          > to[color=green][color=darkred]
          > >> send smtp email from within it.
          > >>
          > >> For our development box, we use WinXP Pro, IIS 5.5,
          > >> VisualStudio200 2, VB as programing language. Our
          > >> test/development version of the web app as hosted on
          > >> our "localhost" works fine; our "Default SMTP Virtual
          > >> Server" is running (per the IIS console).
          > >>
          > >> Our simple test page (EmailTest.aspx )is in a separate
          > >> project, has only a single button and we are trying to
          > >> use the following code on the EmailTest.aspx. vb:
          > >>
          > >> Private Sub Button1_Click(B yVal sender As[/color][/color]
          > System.Object,[color=green][color=darkred]
          > >> ByVal e As System.EventArg s) Handles Button1.Click
          > >>
          > >> Dim OK As New Mail.MailMessag e()
          > >> OK.From = "bobjones@toad. net"
          > >> OK.Subject = "Test"
          > >> OK.Body = "Trying To Send Email"
          > >> OK.To = "bob@cookbookpl us.com"
          > >> Mail.SmtpMail.S mtpServer = "localhost"
          > >>
          > >> Mail.SmtpMail.S end(OK)
          > >>
          > >> End Sub
          > >>
          > >> The line Mail.SmtpMail.S end(OK) always throws an
          > >> exception; we always get this error:
          > >>
          > >> The server rejected one or more recipient addresses.[/color][/color]
          > The[color=green][color=darkred]
          > >> server response was: 550 5.7.1 Unable to relay for
          > >> bob@cookbookplu s.com.com .
          > >>
          > >> It does not matter who the recipient is, either. We[/color][/color]
          > are[color=green][color=darkred]
          > >> connected to the internet via DSL. Otherwise,[/color][/color]
          > everything[color=green][color=darkred]
          > >> else related to our stuff seems to work perfectly.
          > >>
          > >> Have spent way too many man hours researching help[/color][/color]
          > files,[color=green][color=darkred]
          > >> MSDN KnowledgeBase, etc. No luck. I am sure we are
          > >> doing soming wrong, but have no idea what.
          > >>
          > >> Our only prior experience with email code has been with
          > >> MS Access using VBA. We know this is our mistake, just[/color][/color]
          > do[color=green][color=darkred]
          > >> not know how to help ourselves. Also, the web app is[/color][/color]
          > our[color=green][color=darkred]
          > >> first try using ASP.net, etc. Generally, the app works
          > >> works great!
          > >>
          > >> Can anyone please help; or provide a good example we[/color][/color]
          > can[color=green][color=darkred]
          > >> follow?
          > >>
          > >> FYI, our web site is http://www.cookbookplus.com
          > >>
          > >> If curious, you can see the app using
          > >> the "CookBookPlusOn TheWeb" link on the home page.
          > >>
          > >> Or use
          > >>[/color][/color]
          > http://www.cookbookplus.com/CookBook...heWeb/LogInWeb.[color=green][color=darkred]
          > >> aspx for a direct link.
          > >>
          > >> The app is hosted on a Windows Server 2003 system so
          > >> whatever we do must work with IIS 6 when we deploy.
          > >>
          > >> Thank you.
          > >> Bob Jones
          > >> bobjones@toad.n et
          > >> bob@cookbookplu s.com
          > >> 4106267564
          > >>[/color]
          > >
          > >
          > >.
          > >[/color][/color]


          Comment

          • MS News \(MS LVP\)

            #6
            Re: Cannot send email using SMTP

            From: info@YourSMTPDo mainName.com or .net or .xxx

            "Bob Jones" <bobjones@toad. net> wrote in message
            news:0aee01c35d 2b$ef6de740$a00 1280a@phx.gbl.. .[color=blue]
            > We have developed a commercial ASP.net application
            > (personal nutrition management and tracking); we want to
            > send smtp email from within it.
            >
            > For our development box, we use WinXP Pro, IIS 5.5,
            > VisualStudio200 2, VB as programing language. Our
            > test/development version of the web app as hosted on
            > our "localhost" works fine; our "Default SMTP Virtual
            > Server" is running (per the IIS console).
            >
            > Our simple test page (EmailTest.aspx )is in a separate
            > project, has only a single button and we are trying to
            > use the following code on the EmailTest.aspx. vb:
            >
            > Private Sub Button1_Click(B yVal sender As System.Object,
            > ByVal e As System.EventArg s) Handles Button1.Click
            >
            > Dim OK As New Mail.MailMessag e()
            > OK.From = "bobjones@toad. net"
            > OK.Subject = "Test"
            > OK.Body = "Trying To Send Email"
            > OK.To = "bob@cookbookpl us.com"
            > Mail.SmtpMail.S mtpServer = "localhost"
            >
            > Mail.SmtpMail.S end(OK)
            >
            > End Sub
            >
            > The line Mail.SmtpMail.S end(OK) always throws an
            > exception; we always get this error:
            >
            > The server rejected one or more recipient addresses. The
            > server response was: 550 5.7.1 Unable to relay for
            > bob@cookbookplu s.com.com .
            >
            > It does not matter who the recipient is, either. We are
            > connected to the internet via DSL. Otherwise, everything
            > else related to our stuff seems to work perfectly.
            >
            > Have spent way too many man hours researching help files,
            > MSDN KnowledgeBase, etc. No luck. I am sure we are
            > doing soming wrong, but have no idea what.
            >
            > Our only prior experience with email code has been with
            > MS Access using VBA. We know this is our mistake, just do
            > not know how to help ourselves. Also, the web app is our
            > first try using ASP.net, etc. Generally, the app works
            > works great!
            >
            > Can anyone please help; or provide a good example we can
            > follow?
            >
            > FYI, our web site is http://www.cookbookplus.com
            >
            > If curious, you can see the app using
            > the "CookBookPlusOn TheWeb" link on the home page.
            >
            > Or use
            > http://www.cookbookplus.com/CookBook...heWeb/LogInWeb.
            > aspx for a direct link.
            >
            > The app is hosted on a Windows Server 2003 system so
            > whatever we do must work with IIS 6 when we deploy.
            >
            > Thank you.
            > Bob Jones
            > bobjones@toad.n et
            > bob@cookbookplu s.com
            > 4106267564
            >[/color]


            Comment

            • Bob Jones

              #7
              Re: Cannot send email using SMTP

              Using "" generates this error: The "SendUsing"
              configuration value is invalid.

              Using anything other than "localhost" will generate the
              failed to connect...error msg

              Thanks for trying; still at a loss.

              Bob[color=blue]
              >-----Original Message-----
              >"mail.yourSMTP DomainNameHere. com"
              >"smtp.yourSMTP DomainNameHere. com"
              >
              >or try blank ""
              >
              >"Bob Jones" <bobjones@toad. net> wrote in message
              >news:0aee01c35 d2b$ef6de740$a0 01280a@phx.gbl. ..[color=green]
              >> We have developed a commercial ASP.net application
              >> (personal nutrition management and tracking); we want[/color][/color]
              to[color=blue][color=green]
              >> send smtp email from within it.
              >>
              >> For our development box, we use WinXP Pro, IIS 5.5,
              >> VisualStudio200 2, VB as programing language. Our
              >> test/development version of the web app as hosted on
              >> our "localhost" works fine; our "Default SMTP Virtual
              >> Server" is running (per the IIS console).
              >>
              >> Our simple test page (EmailTest.aspx )is in a separate
              >> project, has only a single button and we are trying to
              >> use the following code on the EmailTest.aspx. vb:
              >>
              >> Private Sub Button1_Click(B yVal sender As[/color][/color]
              System.Object,[color=blue][color=green]
              >> ByVal e As System.EventArg s) Handles Button1.Click
              >>
              >> Dim OK As New Mail.MailMessag e()
              >> OK.From = "bobjones@toad. net"
              >> OK.Subject = "Test"
              >> OK.Body = "Trying To Send Email"
              >> OK.To = "bob@cookbookpl us.com"
              >> Mail.SmtpMail.S mtpServer = "localhost"
              >>
              >> Mail.SmtpMail.S end(OK)
              >>
              >> End Sub
              >>
              >> The line Mail.SmtpMail.S end(OK) always throws an
              >> exception; we always get this error:
              >>
              >> The server rejected one or more recipient addresses.[/color][/color]
              The[color=blue][color=green]
              >> server response was: 550 5.7.1 Unable to relay for
              >> bob@cookbookplu s.com.com .
              >>
              >> It does not matter who the recipient is, either. We[/color][/color]
              are[color=blue][color=green]
              >> connected to the internet via DSL. Otherwise,[/color][/color]
              everything[color=blue][color=green]
              >> else related to our stuff seems to work perfectly.
              >>
              >> Have spent way too many man hours researching help[/color][/color]
              files,[color=blue][color=green]
              >> MSDN KnowledgeBase, etc. No luck. I am sure we are
              >> doing soming wrong, but have no idea what.
              >>
              >> Our only prior experience with email code has been with
              >> MS Access using VBA. We know this is our mistake, just[/color][/color]
              do[color=blue][color=green]
              >> not know how to help ourselves. Also, the web app is[/color][/color]
              our[color=blue][color=green]
              >> first try using ASP.net, etc. Generally, the app works
              >> works great!
              >>
              >> Can anyone please help; or provide a good example we[/color][/color]
              can[color=blue][color=green]
              >> follow?
              >>
              >> FYI, our web site is http://www.cookbookplus.com
              >>
              >> If curious, you can see the app using
              >> the "CookBookPlusOn TheWeb" link on the home page.
              >>
              >> Or use
              >>[/color][/color]
              http://www.cookbookplus.com/CookBook...heWeb/LogInWeb.[color=blue][color=green]
              >> aspx for a direct link.
              >>
              >> The app is hosted on a Windows Server 2003 system so
              >> whatever we do must work with IIS 6 when we deploy.
              >>
              >> Thank you.
              >> Bob Jones
              >> bobjones@toad.n et
              >> bob@cookbookplu s.com
              >> 4106267564
              >>[/color]
              >
              >
              >.
              >[/color]

              Comment

              • Bob Jones

                #8
                Re: Cannot send email using SMTP

                Hi Michal,

                You are a genius!

                Got it to work. FINALLY

                Life is beautiful again...

                Is this information written down anywhere I could have
                located it.

                Thank you very much.

                Bob[color=blue]
                >-----Original Message-----
                >| The server rejected one or more recipient addresses.[/color]
                The[color=blue]
                >| server response was: 550 5.7.1 Unable to relay for
                >| bob@cookbookplu s.com.com .
                >
                >Your SMTP server is configured not to allow relaying[/color]
                messages, which is[color=blue]
                >default setting on IIS6.
                >
                >Go to the SMTP virtualserver properties and allow relay[/color]
                for IP address[color=blue]
                >127.0.0.1 (localhost) and all other IPs you want to be[/color]
                able to relay (ie.[color=blue]
                >local network, if any).
                >
                >--
                >Michal A. Valasek, Altair Communications,[/color]
                http://www.altaircom.net[color=blue]
                >Please do not reply to this e-mail, for contact see[/color]
                http://www.rider.cz[color=blue]
                >
                >
                >.
                >[/color]

                Comment

                • Bob Jones

                  #9
                  Re: Cannot send email using SMTP

                  George,

                  Got it working

                  See thread from Michal

                  Thanks again for your help.

                  Bob[color=blue]
                  >-----Original Message-----
                  >check every folder in your \inetpub\mailro ot directory.
                  >Is the message getting stuck there?
                  >
                  >
                  >"Bob Jones" <bobjones@toad. net> wrote in message
                  >news:032b01c35 d30$1cebba90$a6 01280a@phx.gbl. ..[color=green]
                  >> Hi George,
                  >>
                  >> Thanks for the reply; but no luck.
                  >>
                  >> Tried using our IP instead of "localhost" ; get this[/color][/color]
                  error[color=blue][color=green]
                  >> instead: The transport failed to connect to the server.
                  >>
                  >> No Exchange Server involvement here possible either as[/color][/color]
                  we[color=blue][color=green]
                  >> do not use it at all.
                  >>
                  >> I still need help.
                  >>
                  >> Bob
                  >>[color=darkred]
                  >> >-----Original Message-----
                  >> >what happens if you change
                  >> >Mail.SmtpMail. SmtpServer = "localhost"
                  >> >to
                  >> >Mail.SmtpMail. SmtpServer = "xxx.xxx.xxx.xx x"
                  >> >being the IP address
                  >> >
                  >> >Also, I am running an IIS server that uses SMTP to[/color][/color][/color]
                  send[color=blue][color=green]
                  >> email in an[color=darkred]
                  >> >evironment where there is an exchange server. We had[/color][/color][/color]
                  to[color=blue][color=green]
                  >> setup something in[color=darkred]
                  >> >the exchange server to allow the IIS email to send[/color][/color][/color]
                  SMTP[color=blue][color=green]
                  >> mail.[color=darkred]
                  >> >
                  >> >I think that might be your issue.
                  >> >
                  >> >"Bob Jones" <bobjones@toad. net> wrote in message
                  >> >news:0aee01c35 d2b$ef6de740$a0 01280a@phx.gbl. ..
                  >> >> We have developed a commercial ASP.net application
                  >> >> (personal nutrition management and tracking); we[/color][/color][/color]
                  want[color=blue][color=green]
                  >> to[color=darkred]
                  >> >> send smtp email from within it.
                  >> >>
                  >> >> For our development box, we use WinXP Pro, IIS 5.5,
                  >> >> VisualStudio200 2, VB as programing language. Our
                  >> >> test/development version of the web app as hosted on
                  >> >> our "localhost" works fine; our "Default SMTP[/color][/color][/color]
                  Virtual[color=blue][color=green][color=darkred]
                  >> >> Server" is running (per the IIS console).
                  >> >>
                  >> >> Our simple test page (EmailTest.aspx )is in a[/color][/color][/color]
                  separate[color=blue][color=green][color=darkred]
                  >> >> project, has only a single button and we are trying[/color][/color][/color]
                  to[color=blue][color=green][color=darkred]
                  >> >> use the following code on the EmailTest.aspx. vb:
                  >> >>
                  >> >> Private Sub Button1_Click(B yVal sender As[/color]
                  >> System.Object,[color=darkred]
                  >> >> ByVal e As System.EventArg s) Handles Button1.Click
                  >> >>
                  >> >> Dim OK As New Mail.MailMessag e()
                  >> >> OK.From = "bobjones@toad. net"
                  >> >> OK.Subject = "Test"
                  >> >> OK.Body = "Trying To Send Email"
                  >> >> OK.To = "bob@cookbookpl us.com"
                  >> >> Mail.SmtpMail.S mtpServer = "localhost"
                  >> >>
                  >> >> Mail.SmtpMail.S end(OK)
                  >> >>
                  >> >> End Sub
                  >> >>
                  >> >> The line Mail.SmtpMail.S end(OK) always throws an
                  >> >> exception; we always get this error:
                  >> >>
                  >> >> The server rejected one or more recipient addresses.[/color]
                  >> The[color=darkred]
                  >> >> server response was: 550 5.7.1 Unable to relay for
                  >> >> bob@cookbookplu s.com.com .
                  >> >>
                  >> >> It does not matter who the recipient is, either. We[/color]
                  >> are[color=darkred]
                  >> >> connected to the internet via DSL. Otherwise,[/color]
                  >> everything[color=darkred]
                  >> >> else related to our stuff seems to work perfectly.
                  >> >>
                  >> >> Have spent way too many man hours researching help[/color]
                  >> files,[color=darkred]
                  >> >> MSDN KnowledgeBase, etc. No luck. I am sure we are
                  >> >> doing soming wrong, but have no idea what.
                  >> >>
                  >> >> Our only prior experience with email code has been[/color][/color][/color]
                  with[color=blue][color=green][color=darkred]
                  >> >> MS Access using VBA. We know this is our mistake,[/color][/color][/color]
                  just[color=blue][color=green]
                  >> do[color=darkred]
                  >> >> not know how to help ourselves. Also, the web app[/color][/color][/color]
                  is[color=blue][color=green]
                  >> our[color=darkred]
                  >> >> first try using ASP.net, etc. Generally, the app[/color][/color][/color]
                  works[color=blue][color=green][color=darkred]
                  >> >> works great!
                  >> >>
                  >> >> Can anyone please help; or provide a good example we[/color]
                  >> can[color=darkred]
                  >> >> follow?
                  >> >>
                  >> >> FYI, our web site is http://www.cookbookplus.com
                  >> >>
                  >> >> If curious, you can see the app using
                  >> >> the "CookBookPlusOn TheWeb" link on the home page.
                  >> >>
                  >> >> Or use
                  >> >>[/color]
                  >>[/color][/color]
                  http://www.cookbookplus.com/CookBook...heWeb/LogInWeb.[color=blue][color=green][color=darkred]
                  >> >> aspx for a direct link.
                  >> >>
                  >> >> The app is hosted on a Windows Server 2003 system so
                  >> >> whatever we do must work with IIS 6 when we deploy.
                  >> >>
                  >> >> Thank you.
                  >> >> Bob Jones
                  >> >> bobjones@toad.n et
                  >> >> bob@cookbookplu s.com
                  >> >> 4106267564
                  >> >>
                  >> >
                  >> >
                  >> >.
                  >> >[/color][/color]
                  >
                  >
                  >.
                  >[/color]

                  Comment

                  • Bob Jones

                    #10
                    Re: Cannot send email using SMTP

                    Got it working!!

                    See thread from Michal

                    Thanks again for assisting.

                    Bob[color=blue]
                    >-----Original Message-----
                    >"mail.yourSMTP DomainNameHere. com"
                    >"smtp.yourSMTP DomainNameHere. com"
                    >
                    >or try blank ""
                    >
                    >"Bob Jones" <bobjones@toad. net> wrote in message
                    >news:0aee01c35 d2b$ef6de740$a0 01280a@phx.gbl. ..[color=green]
                    >> We have developed a commercial ASP.net application
                    >> (personal nutrition management and tracking); we want[/color][/color]
                    to[color=blue][color=green]
                    >> send smtp email from within it.
                    >>
                    >> For our development box, we use WinXP Pro, IIS 5.5,
                    >> VisualStudio200 2, VB as programing language. Our
                    >> test/development version of the web app as hosted on
                    >> our "localhost" works fine; our "Default SMTP Virtual
                    >> Server" is running (per the IIS console).
                    >>
                    >> Our simple test page (EmailTest.aspx )is in a separate
                    >> project, has only a single button and we are trying to
                    >> use the following code on the EmailTest.aspx. vb:
                    >>
                    >> Private Sub Button1_Click(B yVal sender As[/color][/color]
                    System.Object,[color=blue][color=green]
                    >> ByVal e As System.EventArg s) Handles Button1.Click
                    >>
                    >> Dim OK As New Mail.MailMessag e()
                    >> OK.From = "bobjones@toad. net"
                    >> OK.Subject = "Test"
                    >> OK.Body = "Trying To Send Email"
                    >> OK.To = "bob@cookbookpl us.com"
                    >> Mail.SmtpMail.S mtpServer = "localhost"
                    >>
                    >> Mail.SmtpMail.S end(OK)
                    >>
                    >> End Sub
                    >>
                    >> The line Mail.SmtpMail.S end(OK) always throws an
                    >> exception; we always get this error:
                    >>
                    >> The server rejected one or more recipient addresses.[/color][/color]
                    The[color=blue][color=green]
                    >> server response was: 550 5.7.1 Unable to relay for
                    >> bob@cookbookplu s.com.com .
                    >>
                    >> It does not matter who the recipient is, either. We[/color][/color]
                    are[color=blue][color=green]
                    >> connected to the internet via DSL. Otherwise,[/color][/color]
                    everything[color=blue][color=green]
                    >> else related to our stuff seems to work perfectly.
                    >>
                    >> Have spent way too many man hours researching help[/color][/color]
                    files,[color=blue][color=green]
                    >> MSDN KnowledgeBase, etc. No luck. I am sure we are
                    >> doing soming wrong, but have no idea what.
                    >>
                    >> Our only prior experience with email code has been with
                    >> MS Access using VBA. We know this is our mistake, just[/color][/color]
                    do[color=blue][color=green]
                    >> not know how to help ourselves. Also, the web app is[/color][/color]
                    our[color=blue][color=green]
                    >> first try using ASP.net, etc. Generally, the app works
                    >> works great!
                    >>
                    >> Can anyone please help; or provide a good example we[/color][/color]
                    can[color=blue][color=green]
                    >> follow?
                    >>
                    >> FYI, our web site is http://www.cookbookplus.com
                    >>
                    >> If curious, you can see the app using
                    >> the "CookBookPlusOn TheWeb" link on the home page.
                    >>
                    >> Or use
                    >>[/color][/color]
                    http://www.cookbookplus.com/CookBook...heWeb/LogInWeb.[color=blue][color=green]
                    >> aspx for a direct link.
                    >>
                    >> The app is hosted on a Windows Server 2003 system so
                    >> whatever we do must work with IIS 6 when we deploy.
                    >>
                    >> Thank you.
                    >> Bob Jones
                    >> bobjones@toad.n et
                    >> bob@cookbookplu s.com
                    >> 4106267564
                    >>[/color]
                    >
                    >
                    >.
                    >[/color]

                    Comment

                    Working...