Click to See Complete Forum and Search --> : e-mail subject


jefgees
01-20-2003, 06:36 AM
I’m just beginning with JS and am already fanatic. But due to lack of experience I have a problem. As I’m doing a lot of PC-paperwork for our local team, I send a lot of e-mails. As we have more than 200 (active) members, I’m trying to write something that is making life easier. To be honest I’m not writing it myself, I’m using dreamweaver to do so. What I’m trying to write is the following ……..

In html you use this code to open an e-mail with predefined subject. (The choise to whom is open).

<a href="mailto:?subject=XXXXXX - zzzzzzzzz - ( )">IMAGE</a>


What do I have to do for having the second textblock (marked zzzzzzzzz) in the subject line to be dynamic?
(XXXXXX and ( ) are already in the subject rule. Zzzzzzzzzzzzz should come out of a list)

Something like following code (?)

<a href="mailto:?subject=XXXXXX - CHOOSE NAME OUT OF LIST - XXXX( )">IMAGE</a>

Which script to use to select a name out of a list of 500. and when you select the name it should be in the right place (=replacing the letters CHOOSE NAME OUT OF LIST) and still keeping the others.

Is there please somebody who can help me??

Thanks a lot in advance.

Jef Gees
e-mail: jefgees@westbrabant.net

jefgees
01-21-2003, 02:27 AM
Thanks a lot Dave for replying so fast. Maybe I was not that clear at all. But I meant something else. So I'll try to explain it in another way:

In html you use this code to open an e-mail with predefined subject. (The choise to whom is open, because here I’ll use the selection that is provided by outlook once the e-mail opens. I make a selection out of an adressbook.).

<a href="mailto:?subject= ???????????????????????????????">IMAGE</a>


??????????????????????????????? is composed of the following elements:

XXXXXX - and ?????? ?????? and - MMMMMMMMMMM ( ).

XXXXXX - and - MMMMMMMMMMM ( ). are already in the subject rule.

XXXXXX - at the beginning of the subjectrule and - MMMMMMMMMMM ( ) at the end.

?????? ?????? is a selection out of a list (can be one word or a sentence). This selection is enclosed by XXXXXX - and - MMMMMMMMMMM ( ) .


What should I do so that everything comes together when the e-mail opens to indicate the recipient?



Something like following code (?????)

<a href="mailto:?subject= XXXXXX - {select a word or sentence out of a list} - MMMMMMMMMMM ( ) ">IMAGE</a>

Which script should I use to select a word or sentence out of a list and when selected, this selection should place itself between the 2 already defined XXXXXX - and - MMMMMMMMMMM ().

Should it be better to use PHP to obtain that list from the server and then use JavaScript? Or is this something stupid to mention???

Is there please somebody who can help me??

Thanks a lot in advance.

Jef Gees
e-mail: jefgees@westbrabant.net