Append email addresses to the .To property?

C

coyotebum

I have a mail form that needs to be sent to different recipients based
on a different check box selections. That works fine, but if multiple
boxes are checked that require two or more recipients, I don't know how
to append to the .To property. Is there a way to do this by looping? Or
is there some other solution for this?

Here's the URL: http://www.quickpen.com/internetdemo/index.asp

Here's the relevant code:
<% '----------------determine recipients ------------------ %>
<%
dim toemail

if demo_interested="AutoBid Mechanical" OR demo_interested="AutoBid
SheetMetal" OR demo_interested="PipeDesigner 3D" OR
demo_interested="DuctDesigner 3D" then %>
<% toemail="(e-mail address removed)"%>
<% elseif demo_interested="Tool Manager" then %>
<% toemail="(e-mail address removed)"%>
<% elseif demo_interested="Vulcan" then %>
<% toemail="(e-mail address removed)"%>
<% end if %>
<% end if %>
 
R

RobG

coyotebum said:
I have a mail form that needs to be sent to different recipients based
on a different check box selections. That works fine, but if multiple
boxes are checked that require two or more recipients, I don't know how
to append to the .To property. Is there a way to do this by looping? Or
is there some other solution for this?

You seem very lost, this is a JavaScript group, I can't see how it is
relevant to your question.


Some free tips - come into the 21st century, use HTML 4 strict (it's
been around since the last millennium).

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<URL:http://www.w3.org/QA/2002/04/valid-dtd-list.html>


The language attribute is deprecated, for script elements type is required:

<script type="text/javascript">


Do not try to 'hide' script with HTML comments inside script elements,
it is completely unnecessary, get rid of:

//<!--

Also get rid of your flawed browser sniffing, it will not detect my
browser - or many others - correctly (there are many browsers that don't
identify themselves as either Netscape or IE, because they aren't).

If you want to test pre-loading images, test for document.images and go
from there. But anyhow, pre-loading menu images is soooo 20th century :)

You can do all the roll-over stuff using pure CSS, the 'sliding doors'
technique is very slick and requires zero scripting. It also obviates
pre-loading images, as both images are contained in one image. Google
'CSS rollovers' or check out:

<URL:http://wellstyled.com/css-nopreload-rollovers.html>

[...]
 
C

coyotebum

Right on all counts. Agree base code is way outdated -- updating
ancient pages here. And you're right, I need ASP assistance, not
javascript.

Thanks for the wake-up call.

coyotebum said:
coyotebum said:
I have a mail form that needs to be sent to different recipients based
on a different check box selections. That works fine, but if multiple
boxes are checked that require two or more recipients, I don't know how
to append to the .To property. Is there a way to do this by looping? Or
is there some other solution for this?

You seem very lost, this is a JavaScript group, I can't see how it is
relevant to your question.


Some free tips - come into the 21st century, use HTML 4 strict (it's
been around since the last millennium).

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<URL:http://www.w3.org/QA/2002/04/valid-dtd-list.html>


The language attribute is deprecated, for script elements type is required:

<script type="text/javascript">


Do not try to 'hide' script with HTML comments inside script elements,
it is completely unnecessary, get rid of:

//<!--

Also get rid of your flawed browser sniffing, it will not detect my
browser - or many others - correctly (there are many browsers that don't
identify themselves as either Netscape or IE, because they aren't).

If you want to test pre-loading images, test for document.images and go
from there. But anyhow, pre-loading menu images is soooo 20th century :)

You can do all the roll-over stuff using pure CSS, the 'sliding doors'
technique is very slick and requires zero scripting. It also obviates
pre-loading images, as both images are contained in one image. Google
'CSS rollovers' or check out:

<URL:http://wellstyled.com/css-nopreload-rollovers.html>

[...]
 

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

Forum statistics

Threads
474,436
Messages
2,571,696
Members
48,796
Latest member
Greg L.
Top