Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 11:37 AM
Todd M. Taylor
Guest
 
Posts: n/a
Default Hotmail blocks emails sent w/ CDONTS/CDOSYS????

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 = "president@mysite.com"
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>



 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles