Hi,
I'm using cdonts to send an email message through .asp, and am troubleshooting it to find out why it doesn't go in the "Sent Items" mailbox of the specified user who sent it. (Any hints on this would be greatly appreciated!) I've tried various values for the sending email address, and when I try and use the following:
LastName, FirstName
the message arrives saying its from: LastName
The comma must be cutting off itself and the first name. Is there any way to get around this? Are are there any other ideas for making sure the message goes to "Sent Items"???
Thanks,
Ray
Ps - here's the code I'm using:
strTo= "emailaddress@company.com"
strSubject = "Test"
HTML = "<!DOCTYPE HTML PUBLIC""-//IETF//DTD HTML//EN"">"
HTML = HTML & "<html>"
HTML = HTML & "<head>"
HTML = HTML & "<title>Test message!</title>"
HTML = HTML & "</head>"
HTML = HTML & "<body bgcolor=""FAF6DD"">"
HTML = HTML & "<p align = ""center"">" & Request.Form("Message"
& "</p>"
HTML = HTML & "</body>"
HTML = HTML & "</html>"
strBody= HTML
Set objCDONTSMail = CreateObject("CDONTS.NewMail"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
objCDONTSMail.Mailformat=0
objCDONTSMail.Bodyformat=0
objCDONTSMail.From = "ValidLastName, ValidFirstName"
objCDONTSMail.To = strTo
objCDONTSMail.Subject = strSubject
objCDONTSMail.Body = strBody
objCDONTSMail.Send
I'm using cdonts to send an email message through .asp, and am troubleshooting it to find out why it doesn't go in the "Sent Items" mailbox of the specified user who sent it. (Any hints on this would be greatly appreciated!) I've tried various values for the sending email address, and when I try and use the following:
LastName, FirstName
the message arrives saying its from: LastName
The comma must be cutting off itself and the first name. Is there any way to get around this? Are are there any other ideas for making sure the message goes to "Sent Items"???
Thanks,
Ray
Ps - here's the code I'm using:
strTo= "emailaddress@company.com"
strSubject = "Test"
HTML = "<!DOCTYPE HTML PUBLIC""-//IETF//DTD HTML//EN"">"
HTML = HTML & "<html>"
HTML = HTML & "<head>"
HTML = HTML & "<title>Test message!</title>"
HTML = HTML & "</head>"
HTML = HTML & "<body bgcolor=""FAF6DD"">"
HTML = HTML & "<p align = ""center"">" & Request.Form("Message"
HTML = HTML & "</body>"
HTML = HTML & "</html>"
strBody= HTML
Set objCDONTSMail = CreateObject("CDONTS.NewMail"
objCDONTSMail.Mailformat=0
objCDONTSMail.Bodyformat=0
objCDONTSMail.From = "ValidLastName, ValidFirstName"
objCDONTSMail.To = strTo
objCDONTSMail.Subject = strSubject
objCDONTSMail.Body = strBody
objCDONTSMail.Send