Can I retrieve sender email address for CDO Message ?

P

Peter Bassett

I have an ASP script for users to replying by email to job postings. I set
up the message using CDO as usual:

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.From = "blah"
objMessage.To = "(e-mail address removed)"
objMessage.TextBody = "blah"
objMessage.Send

I did not realize that objMessage.From needs to be filled in, and that
there is no vlaidation. Suppose that's how spammers work their magic.

Is there a way to determine the user's email account so I can fill in
objMessage.From ? I am thinking No, that a server app can not strip
something off a user's PC memory. Otherwise I will have to set
objMessage.From to a generic term.


Thanks!
Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top