×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Naming conventions

Naming conventions

Naming conventions

(OP)
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.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?

Thanks!

RE: Naming conventions

(OP)
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:

Quote:

Microsoft VBScript runtime error '800a01a8'

Object required: ''

/my_test.asp, line 87

Line 87 is this:

CODE -->

ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close