SmtpMail.Send not working. Held in Mailroot/Queue folder.

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

    SmtpMail.Send not working. Held in Mailroot/Queue folder.

    I am not able to send email using SmtpMail.Send. I imagine that it is a
    configuration issue. I see that the emails that I attempt to send are in the
    Mailroot/Queue folder but they never actually get sent. I have an anti-virus
    program that I disabled but it still doesn't work.

    I also know that we have a spam filtering program called AppRiver SpamLab.
    Could it be this?

    Any suggestions? Thanks.


  • Cor Ligthert

    #2
    Re: SmtpMail.Send not working. Held in Mailroot/Queue folder.

    RH,

    Some parts of your message bring me in doubt that you are using Smtp mail.
    Can you show a little piece of code.

    Cor


    Comment

    • rh

      #3
      Re: SmtpMail.Send not working. Held in Mailroot/Queue folder.

      Thanks for any assistance. Here is part of the code:

      Dim loMail As New MailMessage()

      loMail.From = "FromEmail@yaho o.com"

      loMail.To = "ToEmail@yahoo. com"

      loMail.Subject = "Test Email Subject"

      loMail.Body = "Test Email Body"

      loMail.BodyForm at = MailFormat.Html

      SmtpMail.SmtpSe rver = "localhost"

      SmtpMail.Send(l oMail)


      "Cor Ligthert" <notmyfirstname @planet.nl> wrote in message
      news:upHcDEM$EH A.2540@TK2MSFTN GP09.phx.gbl...[color=blue]
      > RH,
      >
      > Some parts of your message bring me in doubt that you are using Smtp mail.
      > Can you show a little piece of code.
      >
      > Cor
      >[/color]


      Comment

      • Cor Ligthert

        #4
        Re: SmtpMail.Send not working. Held in Mailroot/Queue folder.

        Rh,

        That "localhost" is has to be an mailserver by instance IIS mailserver.

        In this situation it will work only on your test environment when you have a
        mailserver installed on that.

        It has to be an dns name or an ip adres from a real smtp mailserver.

        Cor


        Comment

        • rh

          #5
          More info about the problem

          Here is more info: I just checked the Event Viewer-->System and it show a
          Warning that says:

          "Message delivery to the remote domain 'yahoo.com' failed for the following
          reason: The remote server did not respond to a connection attempt."


          "Cor Ligthert" <notmyfirstname @planet.nl> wrote in message
          news:upHcDEM$EH A.2540@TK2MSFTN GP09.phx.gbl...[color=blue]
          > RH,
          >
          > Some parts of your message bring me in doubt that you are using Smtp mail.
          > Can you show a little piece of code.
          >
          > Cor
          >[/color]


          Comment

          • rh

            #6
            Re: SmtpMail.Send not working. Held in Mailroot/Queue folder.

            That was it. Thanks!

            "Cor Ligthert" <notmyfirstname @planet.nl> wrote in message
            news:eHHXRQM$EH A.3700@tk2msftn gp13.phx.gbl...[color=blue]
            > Rh,
            >
            > That "localhost" is has to be an mailserver by instance IIS mailserver.
            >
            > In this situation it will work only on your test environment when you have
            > a mailserver installed on that.
            >
            > It has to be an dns name or an ip adres from a real smtp mailserver.
            >
            > Cor
            >[/color]


            Comment

            • Jared Tullis

              #7
              Re: More info about the problem

              I know you already have this solved, but for others out there who might be
              experiencing the same trouble, a little more info:

              I am going under the assumption here that maybe you are using an ISP who
              blocks direct SMTP connections.

              When you were using Localhost, you said it got to your mail queue, so that
              means the local IIS SMTP host is indeed up and running. IIS can only
              deliver how it is configured to deliver, so without a smart host, IIS will
              attempt direct delivery. In other words, if you send a message to
              yahoo.com, IIS will attempt an outbound connection on port 25 (SMTP)
              directly to Yahoo!'s mail servers. As soon as you put in your ISP's mail
              server into SmtpMail.SmtpSe rver, it started connecting through your ISP and
              thus the email got through. The other alternative in this scenario is to
              configure IIS to use your ISP as a smart host (in Internet Services Manager,
              right click Default SMTP Virtual Server, hit properties and under the
              advanced button on the delivery tab, you can put your ISP's mail server in
              that box.

              HTH

              "rh" <rherrera@smci. com> wrote in message
              news:OHVn%23SM$ EHA.4072@TK2MSF TNGP10.phx.gbl. ..[color=blue]
              > Here is more info: I just checked the Event Viewer-->System and it show a
              > Warning that says:
              >
              > "Message delivery to the remote domain 'yahoo.com' failed for the[/color]
              following[color=blue]
              > reason: The remote server did not respond to a connection attempt."
              >
              >
              > "Cor Ligthert" <notmyfirstname @planet.nl> wrote in message
              > news:upHcDEM$EH A.2540@TK2MSFTN GP09.phx.gbl...[color=green]
              > > RH,
              > >
              > > Some parts of your message bring me in doubt that you are using Smtp[/color][/color]
              mail.[color=blue][color=green]
              > > Can you show a little piece of code.
              > >
              > > Cor
              > >[/color]
              >
              >[/color]


              Comment

              Working...