Announcement

Collapse
No announcement yet.

CDO and server authentication?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CDO and server authentication?

    Hi,

    I've written a simple mailshot function to send emails to my customers who have requested wanting mail. It loops email addresses through a CDO email script that sends out the message. The problem I've suddenly got is that emails are only being sent to addresses belonging to the server. Here's the error if I try to send to a Hotmail (or GMail) address:


    error '8004020f'
    /admin/Email_cust.asp, line 89

    line 89 is:

    oMail.Send

    I'm guessing it's a Windows permissions (isn't it always with MS!) thing on the smtp server. Anyone, know what's going off?

    Cheers.

    PS Here's the CDO settings

    iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
    iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
    iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10
    iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

  • #2
    Oops, I've added the authenticate, username and password CDO fields correctly and it appears to be working now!

    Comment


    • #3
      Hello,

      For security reasons on our shared servers, we have configured our email services such a way that only authenticated and local users can pass the relay. That means to send emails from your scripts, you have to use a valid user name and password of email account that you have created physically on our email server. You can not use any email account in FROM field of email script which is not present on our server.
      Glad to know your issue has been sorted

      Gabriel S
      ||
      ||
      MSN: gabriel @ eukhost.com || SKYPE: Gabriel.Sandler

      Comment


      • #4
        I was always using an existing mail account on the server for the 'From' field, I just needed to add the three extra CDO values to authenticate the address. Thanks for your reply.

        Comment

        Working...
        X