CDONTS Sends to some addresses but not others

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Philth
    New Member
    • Oct 2007
    • 38

    #1

    CDONTS Sends to some addresses but not others

    Hi there,

    This is a weird one. My CDONTS mail script runs fine, with no errors. When using my hotmail account as the recipient I receive the mail fine. However, if I change this to an outlook email account, it never arrives. Is anyone aware of what the problem is?

    thanks.
  • markrawlingson
    Recognized Expert Contributor
    • Aug 2007
    • 346

    #2
    Doesn't sound like it's on the sending side of things, it's probably a receiving issue on the outlook account's end.

    Could be a variety of things.

    1) Server-side junk mail filter settings of the account in outlook
    2) client-side junk mail filter settings for the account in outlook itself
    3) auto-delete/block settings in outlook
    4) Server-Side 'blacklist' setting or firewall.

    Sincerely,
    Mark

    Originally posted by Philth
    Hi there,

    This is a weird one. My CDONTS mail script runs fine, with no errors. When using my hotmail account as the recipient I receive the mail fine. However, if I change this to an outlook email account, it never arrives. Is anyone aware of what the problem is?

    thanks.

    Comment

    • CroCrew
      Recognized Expert Contributor
      • Jan 2008
      • 564

      #3
      I agree with markrawlingson. Check your “junk Mail Folder” and you might find it there or another place to look would be any antivirus program that you might have running in the back-ground that is attached to Outlook.

      Comment

      • Philth
        New Member
        • Oct 2007
        • 38

        #4
        Thanks for your replies.

        I've turned off all of Norton restrictions on incoming mail and have checked the junk mail folders - still nothing. Just incase, here's my coding...

        Code:
        <%
        Dim t1name,t1,t2name,t2,t3name,t3
        t1name = "Name:"
        t1 = Request.Form("t1")
        t2name = "Email:"
        t2 = Request.Form("t2")
        t3name = "Telephone:"
        t3 = Request.Form("t3")
        Dim stname,st
        stname = "Message:"
        st = Request.Form("st")
        Dim ObjMail
        Set ObjMail = Server.CreateObject("CDONTS.NewMail")
        ObjMail.To = "email"
        ObjMail.From = "postmaster"
        ObjMail.Subject = "Contact Form From Website"
        objMail.MailFormat = 0
        ObjMail.Body = t1name & vbcrlf&_
        t1 & vbcrlf&_
        t2name & vbcrlf&_
        t2 & vbcrlf&_
        t3name & vbcrlf&_
        t3 & vbcrlf&_
        stname & vbcrlf&_
        st
        ObjMail.Send
        Set ObjMail = Nothing
        Response.Redirect ""
        %>

        Comment

        • CroCrew
          Recognized Expert Contributor
          • Jan 2008
          • 564

          #5
          This might be your problem.

          ObjMail.To = "email"
          ObjMail.From = "postmaster "

          You’re not using the variable email or postmaster. What you are using is the string "email" and "postmaster ". If somewhere in your code you are declaring and setting a value for the variables email and postmaster then you can just remove the quotes around the two words to make them variables and not strings. If the still does not work post the code again with your changes.

          Hope that helps~

          Comment

          • Philth
            New Member
            • Oct 2007
            • 38

            #6
            CroCrew, sorry, I should have said, I've removed any personal email address references. So ignore those two points.

            Comment

            • Philth
              New Member
              • Oct 2007
              • 38

              #7
              This is how it looks...

              Code:
              <%
              Dim t1name,t1,t2name,t2,t3name,t3
              t1name = "Name:"
              t1 = Request.Form("t1")
              t2name = "Email:"
              t2 = Request.Form("t2")
              t3name = "Telephone:"
              t3 = Request.Form("t3")
              Dim stname,st
              stname = "Message:"
              st = Request.Form("st")
              Dim ObjMail
              Set ObjMail = Server.CreateObject("CDONTS.NewMail")
              ObjMail.To = "me@hotmail.com"
              ObjMail.From = "postmaster@hotmail.com"
              ObjMail.Subject = "Contact Form From Website"
              objMail.MailFormat = 0
              ObjMail.Body = t1name & vbcrlf&_
              t1 & vbcrlf&_
              t2name & vbcrlf&_
              t2 & vbcrlf&_
              t3name & vbcrlf&_
              t3 & vbcrlf&_
              stname & vbcrlf&_
              st
              ObjMail.Send
              Set ObjMail = Nothing
              Response.Redirect "thanks.htm"
              %>

              Comment

              • markrawlingson
                Recognized Expert Contributor
                • Aug 2007
                • 346

                #8
                Which domain is the email account set up in outlook registered with?

                EG:
                @sympatico.ca
                @somedomain.com
                @iamsocool.net

                Also, can you access this account from a webmail interface?

                Junk mail filters are not only limited to outlook itself, there's usually all sorts of junkmail/whitelist/blacklist features on the server side as well. Outlook is a clientside application, checking mail filters and settings inside of it is pointless if the mail is being stopped at the server. If it's still not there I would see if there is a whitelist feature and add the from address from your CDONTS code to it on the server side as well as the client side. In addition your provider might think it's junk and automatically threw out the email to reduce spam domain wide. There's blacklisting issues here too, if your IP or the domain you're sending from is email blacklisted by the provider, they'll bounce it with or without your consent.

                Comment

                Working...