Error trying to send email

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

    Error trying to send email

    error '80040211'
    /register.asp, line 71



    I receive this error when i attempt to send an email.



    My code is as follows:







    Dim ObjSendMail
    Set ObjSendMail = CreateObject("C DO.Message")
    ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network).
    ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpserver") = "xxxxxxxx"
    ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpserverport" ) = 25
    ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpusessl") = False 'Use SSL for the connection (True or False)
    ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpconnectiont imeout") = 60
    ' If your server requires outgoing authentication uncomment the lines bleow and use a valid email address and password.
    ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpauthenticat e") = 1 'basic (clear-text) authentication
    ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/sendusername") ="xxxxxx@xxxxx. xxx"
    ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/sendpassword") ="xxxxxxx"
    ObjSendMail.Con figuration.Fiel ds.Update
    ObjSendMail.To = register_email
    ObjSendMail.Sub ject = "Confirm Your Account"
    ObjSendMail.Fro m = "From Us!"
    message = "Thank you for signing up! Please click the link below to confirm your account. If the link does not work, then copy and paste the link into your browser's address bar.<br><br>"
    message = message & "<a href="http://www.mywebsite.c om/register.asp?fu nc=confirm&emai l=" & register_email & "confirmatoin_n umber=" & confirmation_nu mber & """>Confirm Your Account</a><br><br>"
    message = message & "http://www.mywebsite.c om/register.asp?fu nc=confirm&emai l=" & register_email & "confirmatoin_n umber=" & confirmation_nu mber
    ObjSendMail.HTM LBody = message
    ObjSendMail.Sen d
    Set ObjSendMail = Nothing



    just to verify, the username and password ARE correct. i even changed the password on my mail server, and copied and pasted it here. (i have them "xxx"ed out for my own security)

    the mail server is correct. i use all this same information in outlook express.

    PLEASE HELP ME!!! This same script works for a friend of mine. i made him a script which does the same thing pretty much, but it sends for him.........



    Thanks,

    James Jones

  • Jay

    #2
    Re: Error trying to send email

    forgot to say....line 71 is the line that says:

    ObjSendMail.Sen d


    "Jay" <jamisonburrous 08@insightbb.co mwrote in message news:Ogvzp7yyGH A.2516@TK2MSFTN GP06.phx.gbl...
    error '80040211'
    /register.asp, line 71



    I receive this error when i attempt to send an email.



    My code is as follows:







    Dim ObjSendMail
    Set ObjSendMail = CreateObject("C DO.Message")
    ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network).
    ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpserver") = "xxxxxxxx"
    ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpserverport" ) = 25
    ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpusessl") = False 'Use SSL for the connection (True or False)
    ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpconnectiont imeout") = 60
    ' If your server requires outgoing authentication uncomment the lines bleow and use a valid email address and password.
    ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/smtpauthenticat e") = 1 'basic (clear-text) authentication
    ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/sendusername") ="xxxxxx@xxxxx. xxx"
    ObjSendMail.Con figuration.Fiel ds.Item ("http://schemas.microso ft.com/cdo/configuration/sendpassword") ="xxxxxxx"
    ObjSendMail.Con figuration.Fiel ds.Update
    ObjSendMail.To = register_email
    ObjSendMail.Sub ject = "Confirm Your Account"
    ObjSendMail.Fro m = "From Us!"
    message = "Thank you for signing up! Please click the link below to confirm your account. If the link does not work, then copy and paste the link into your browser's address bar.<br><br>"
    message = message & "<a href="http://www.mywebsite.c om/register.asp?fu nc=confirm&emai l=" & register_email & "confirmatoin_n umber=" & confirmation_nu mber & """>Confirm Your Account</a><br><br>"
    message = message & "http://www.mywebsite.c om/register.asp?fu nc=confirm&emai l=" & register_email & "confirmatoin_n umber=" & confirmation_nu mber
    ObjSendMail.HTM LBody = message
    ObjSendMail.Sen d
    Set ObjSendMail = Nothing



    just to verify, the username and password ARE correct. i even changed the password on my mail server, and copied and pasted it here. (i have them "xxx"ed out for my own security)

    the mail server is correct. i use all this same information in outlook express.

    PLEASE HELP ME!!! This same script works for a friend of mine. i made him a script which does the same thing pretty much, but it sends for him.........



    Thanks,

    James Jones

    Comment

    • jjw

      #3
      Re: Error trying to send email

      I think your smtp server is rejecting the email from the webserver for
      some reason or another. In my experience, this is the cause when the
      error happens on the obj.sendmail line and no error is given.

      jjw

      Comment

      • Jay

        #4
        Re: Error trying to send email

        well i kno they are the correct username / password. this SAME EXACT script
        ( copied and pasted) works on the same mail server w/ different login
        username/password.....bo th websites are on a godaddy.com server......... .


        HELP!!!!


        i kno for sure the username / password are correct.


        thanks,
        james jones



        "jjw" <bigwheels16@gm ail.comwrote in message
        news:1156838574 .119329.92930@b 28g2000cwb.goog legroups.com...
        >I think your smtp server is rejecting the email from the webserver for
        some reason or another. In my experience, this is the cause when the
        error happens on the obj.sendmail line and no error is given.
        >
        jjw
        >

        Comment

        • Evertjan.

          #5
          Re: Error trying to send email

          Jay wrote on 30 aug 2006 in microsoft.publi c.inetserver.as p.general:
          "jjw" <bigwheels16@gm ail.comwrote in message
          >>I think your smtp server is rejecting the email from the webserver for
          >some reason or another. In my experience, this is the cause when the
          >error happens on the obj.sendmail line and no error is given.
          [please do not toppost on usenet]
          well i kno they are the correct username / password. this SAME EXACT
          script ( copied and pasted) works on the same mail server w/ different
          login username/password.....bo th websites are on a godaddy.com
          server......... .
          HELP!!!!
          i kno for sure the username / password are correct.
          "i kno"?

          Perhaps you made a spelling or case mistake?


          --
          Evertjan.
          The Netherlands.
          (Please change the x'es to dots in my emailaddress)

          Comment

          • jjw

            #6
            Re: Error trying to send email

            well i kno they are the correct username / password. this SAME EXACT script
            ( copied and pasted) works on the same mail server w/ different login
            username/password.....bo th websites are on a godaddy.com server......... .
            >
            try it with the username and password that works with the other server.

            or it could be a firewall issue where the smtp server is behind a
            firewall that is only set up to allow connections from the one mail
            server and not the other.

            It really sounds like the smtp server is rejecting the message, or the
            message is not getting to the mail server at all. It also sounds like
            the web server IS sending out the message. So the problem lies
            somewhere between the web server, and up to and including the mail
            server, is my opinion.

            Comment

            Working...