Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Hotmail blocks emails sent w/ CDONTS/CDOSYS????

Reply
Thread Tools

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

 
 
Todd M. Taylor
Guest
Posts: n/a
 
      02-02-2004
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>



 
Reply With Quote
 
 
 
Reply

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I find emails that were composed / sent / deleted in Hotmail? JM Firefox 4 04-29-2007 06:13 PM
procs/blocks - blocks with procs, blocks with blocks? matt Ruby 1 08-06-2004 01:33 AM
How to stop Sir name showing on emails from hotmail emails Drifter Computer Information 3 07-07-2004 07:15 AM
How to save sent messages with hotmail? Use.Netuser.de Computer Support 6 09-04-2003 09:33 PM



Advertisments