[thelist] ASPMail error

Ken Schaefer Ken at adOpenStatic.com
Tue Sep 6 22:30:36 CDT 2005


I am an indiot - didn't read the subject line.

You are using ASPMail. To add multiple recipients:

objMail.AddRecipient "John Smith", "john at smith.com"
objMail.AddRecipient "Jane Doe", "jane at doe.com"

Cheers
Ken

: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: : From: thelist-bounces at lists.evolt.org [mailto:thelist-
: : bounces at lists.evolt.org] On Behalf Of Flavia Tarzwell (FayeC)
: : Subject: [thelist] ASPMail error
: :
: : I am trying to add recipients to a form and I am getting errors.
: : the line is:
: : Mailer.AddRecipient  "FayeC", "quote at fayec.com"
: :
: : And I want to have the same email mailed to the person who sent the form
: : so I am trying to get the email posted on the form by using:
: : Request.Form("fullname") , Request.Form("email")
: :
: : But everytime I add that to the line it gives several
: : errors depending on what I use to join the recipients
: : (&, ;, , ):
: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: 
: What do you mean "join the recipients"?
: 
: I don't know what mail component you are using, but it seems that if it
: has
: an .AddRecipient method, you'd need to call that for each recipient you
: wish
: to add.
: 
: The & is VBScript for string concatenation - i.e. joining strings together
: in
: VBScript. It probably has nothing to do with how this mail component
: works.
: 
: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: : Microsoft VBScript compilation error '800a0401'
: :
: : Expected end of statement
: :
: : /quote_sent.asp, line 6
: :
: : Mailer.AddRecipient "FayeC" , "quote at fayec.com";
: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: 
: Why is there a ; at the end of this line of code? That's not valid
: VBScript
: (hence your compilation error).
: 
: 
: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: : Request.Form("fullname") , Request.Form("email")
: : or
: :
: : Microsoft VBScript runtime error '800a01c2'
: :
: : Wrong number of arguments or invalid property assignment:
: : 'Mailer.AddRecipient'
: :
: : /quote_sent.asp, line 6
: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: 
: I don't know what bit of code you're using here. However you're supplying
: the
: wrong number of arguments to the AddRecipient method of the component in
: question.
: 
: 
: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: : or
: :
: : Microsoft VBScript runtime error '800a01c2'
: :
: : Wrong number of arguments or invalid property assignment: 'Request.Form'
: :
: : /quote_sent.asp, line 7
: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: 
: Again, no code supplied, but the error is pretty self-explanatory.
: 
: Cheers
: Ken



More information about the thelist mailing list