Hotmail blocks emails sent w/ CDONTS/CDOSYS????

Discussion in 'ASP General' started by Todd M. Taylor, Feb 2, 2004.

  1. Hello;

    For some reason, the email scripts on my web site can't send emails to
    Hotmail accounts. No error is generated, but no email is sent either. I've
    done some searching on this matter, and it appears as though I'm not the
    only one having this problem, but I have yet to find a solution :(

    Below is my CDOSYS script that was *supposed to* resolve the problem by
    passing the SMTP server's along with the email, but it doesn't work :(

    Have any of you had success with sending emails to Hotmail accounts via CDO?
    I don't have control over the server's setup because it's a hosted account.

    Sincerely,
    Todd M. Taylor

    <code>
    Set objMessage = CreateObject("CDO.Message")
    objMessage.Subject = "MySite.com - Password Reminder"
    objMessage.From = ""
    objMessage.To = pEmail
    strBody = "Hello " & pUserName & ":" & VbCrLf & VbCrLf
    strBody = strBody & "Here is your requested password for logging in to
    http://www.mysite.com/" & VbCrLf & VbCrLf
    strBody = strBody & "------------------------" & VbCrLf
    strBody = strBody & "Password: " & pPassword & VbCrLf
    strBody = strBody & "------------------------"
    objMessage.TextBody = strBody

    '==This section provides the configuration information for the remote SMTP
    server.
    '==Normally you will only change the server name or IP.

    objMessage.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

    'Name or IP of Remote SMTP Server
    objMessage.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserver") =
    "mail.mydomain.com"

    'Server port (typically 25)
    objMessage.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

    objMessage.Configuration.Fields.Update

    '==End remote SMTP server configuration section==
    objMessage.Send
    </code>
     
    Todd M. Taylor, Feb 2, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. BB
    Replies:
    2
    Views:
    218
  2. Paul D.Smith

    Hotmail popper - Hotmail => pop3 access <eom>

    Paul D.Smith, Oct 14, 2004, in forum: ASP General
    Replies:
    0
    Views:
    529
    Paul D.Smith
    Oct 14, 2004
  3. Paxton

    CDONTS to CDOSYS

    Paxton, Nov 11, 2004, in forum: ASP General
    Replies:
    1
    Views:
    205
    Ray Costanzo [MVP]
    Nov 12, 2004
  4. tshad

    CDOSYS AND CDONTS on W2K3 machine

    tshad, Jan 14, 2005, in forum: ASP General
    Replies:
    15
    Views:
    400
    tshad
    Jan 18, 2005
  5. Saf

    CDOSys and Hotmail

    Saf, Mar 16, 2006, in forum: ASP General
    Replies:
    3
    Views:
    241
  6. Jed

    CDONTS or CDOSYS UTF-8 Email

    Jed, Nov 8, 2006, in forum: ASP General
    Replies:
    10
    Views:
    435
  7. Dr. Harvey Waxman

    cdosys cdonts question

    Dr. Harvey Waxman, Dec 6, 2006, in forum: ASP General
    Replies:
    4
    Views:
    277
    Harvey Waxman
    Dec 7, 2006
  8. matt
    Replies:
    1
    Views:
    471
    George Ogata
    Aug 6, 2004
Loading...