| 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
|