IIS and SMTP - CDO Addressing to Hotmail

This is Interesting: Free IT Magazines  
Home > Archive > IIS and SMTP > June 2004 > CDO Addressing to Hotmail





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author CDO Addressing to Hotmail
J. Alan Rueckgauer

2004-06-28, 8:55 am

Hello. When using CDO in an ASP page to send email to Hotmail or Yahoo, the
"to" address does not appear at the receiving end and gets placed into the
bulk mail folder. (This is the case when viewing the mailbox either through
Outlook Express or the browser interface.) However, when looking at the
message's properties->details tab, the correct addressing is shown. Does
anyone know how to either get CDO to format the message header correctly?
Or, is this some other issue? BTW, this is *not* happening with the same
messages being sent to other places, like verizon.net.

Sample of the code that's generating the message:

with rsMailRecipients
do while not .eof
' set the message content strings based on record details
' logic & assignments omitted
set objMail = createobject("CDO.Message")
objMail.Sender = chr(34) & strSenderName & chr(34) & chr(32) & "<" &
strSenderEmail & ">"
objMail.To = chr(34) & strRecipientName & chr(34) & chr(32) & "<" &
strRecipientEmail & ">"
objMail.Subject = strMessageSubject
objMailHTMLBody = strMessageBody
objMail.Send
loop
.movenext
end with


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com