I am getting an error which, I suspect, is related to this:
If errorCount = 0 Then Set ObjSendMail = Server.CreateObject("CDO.Message") ObjSendMail.To = WebmasterEmail 'recipient ObjSendMail.BCC = myCopy 'other recipient ObjSendMail.From = name 'sender ObjSendMail.From = email 'sender ObjSendMail.Body = message ObjSendMail.HTMLBody = strBody ObjSendMail.Send Set ObjSendMail = Nothing End If
In my form I have three fields, name, email, and message. Here I have:
ObjSendMail.From = name 'sender ObjSendMail.From = email 'sender
Does 'From' refer to the name of the person as in 'From Joe' or Joe's email? If it refers to email, what would name be?