473,396 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Append email addresses to the .To property?

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="qp********@quickpen.com"%>
<% elseif demo_interested="Tool Manager" then %>
<% toemail="tm********@quickpen.com"%>
<% elseif demo_interested="Vulcan" then %>
<% toemail="su*****@mechanicaldata.com"%>
<% end if %>
<% end if %>

Jun 17 '06 #1
2 1358
coyotebum wrote:
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.

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


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>

[...]

--
Rob
Jun 18 '06 #2
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
RobG wrote:
coyotebum wrote:
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.

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


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>

[...]

--
Rob


Jun 19 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: dave | last post by:
Hello, I'm creating a site that has several contact email addresses. These are vlid addresses, i'm wondering if i can use php to alter these addresses so that spam harvesters can't get them, yet a...
2
by: Hoang | last post by:
anyone know of an algorithm to filter out real email addresses as opposed to computer generated email addresses? I have been going through past email archives in order to find friends email...
5
by: Peter Murray | last post by:
Hi! I hope someone can assist me, I have been using Python for a year or two, but I am not a programmer and only use it occasionally for small issues or just for fun. So I perhaps do not have the...
2
by: Doug | last post by:
I'm a little confused by this functionality. It doesn't seem to be behaving like it should. I am using the following regular expression to validate email addresses:...
4
by: SAL | last post by:
I am using a RegularExpressionValidator control on my ASP page, and I have the ValidationExpression property set to "Internet E-mail Address". The email address is valiated when the user puts in a...
23
by: codefire | last post by:
Hi, I am trying to get a regexp to validate email addresses but can't get it quite right. The problem is I can't quite find the regexp to deal with ignoring the case james..kirk@fred.com, which...
3
by: g0c | last post by:
hi, how to hide or replace email addresses in php mail function with something like "group" so the email addresses to which email is sent are not visible ? i have : $subs = "email1@dot.com,...
12
by: Adrian | last post by:
Is there a way to know which email addresses viewed my website? Thanks, Adrian.
45
by: Dennis | last post by:
Hi, I have a text file that contents a list of email addresses like this: "foo@yahoo.com" "tom@hotmail.com" "jerry@gmail.com" "tommy@apple.com" I like to
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.