Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Naming conventions

Status
Not open for further replies.

Blueie

Technical User
May 12, 2012
72
GB
Hello

I am getting an error which, I suspect, is related to this:

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

Code:
ObjSendMail.[b]From[/b] = name 'sender
ObjSendMail.[b]From[/b] = 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?

Thanks!
 
Thanks for your reply, PHV

Yes, I can change From to Sender, but does Sender refer to the name of the sender or the email of the sender or doesn't it matter as long as I have them like this:

ObjSendMail.Sender = name 'sender
ObjSendMail.Sender = email 'sender

The actual error is pointing to:

Microsoft VBScript runtime error '800a01a8'

Object required: ''

/my_test.asp, line 87

Line 87 is this:

Code:
ObjSendMail.Configuration.Fields.Item ("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/sendusing")[/URL] = 2

but I am not sure if that is a false message. Those are standard, aren't they? I have never touched them.

Thanks again for your reply.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top