Click to See Complete Forum and Search --> : How do I put the form into an email that could be sent to multiple emails ?


Bern
10-31-2003, 02:01 PM
Hi all,

I just want to thank all who had helped me with this project of mine that I had been doing. Much appreciation goes out to Khalid and the others who had been posting to my threads.

Now, on to the juicy part of the forum, the question itself ! :)

Right now, my order form is working like it should be, BUT I am having trouble, sending emails to multiple people with the same email on javascript and having problems trying to parse the values of a certain form into the email itself.

I followed the instructions and code from this link

http://javascript.internet.com/forms/confirm-order.html

, the email can only be sent to ONE address and the mail is basically empty.

I am not using any server side language at the moment, only pure javascript.

How do i send the email to
1) the client "purchasing or confirming" the order form AND myself (aka distributor, or seller) automatically, after the client hits submit (this is after he enters teh email)

2) how do i ensure that the same order form that is found on the html page will be sent via email?

attached to this thread is a zipped folder of the three files that I have been working on.

the shopping.html is the menu for order
the confirm.html is the confirmation page
the thanks.html is just a thank you file.

Any suggestions or help is greatly appreciated and Happy halloween too !!! :)

Bern

SnowCrash
11-01-2003, 04:27 AM
To my opinion there is no way to solve your 2. problem without a server-side script, that creates an attachment or a html-mail.

1.: at the point where you have to specify the receivers e-mail try separating them with semicolons.

Bern
11-03-2003, 07:51 AM
Thanks for answering my first question,

I try separating them with semi colons and it doesn't seem to work.

This is what i did

<form method=post action="http://cgi.freedback.com/mail.pl" name="emailform">
Email form to: <input type=text name=to value=""><input type=hidden name = to value=";bernard78_98@yahoo.com"><input type=hidden name=from value="info@scontech.com">
<input type=hidden name=subject value="** Order Form **">

I even tried it this way

<form method=post action="http://cgi.freedback.com/mail.pl" name="emailform">
Email form to: <input type=text name=to value=";bernard78_98@yahoo.com"><input type=hidden name=from value="info@scontech.com">
<input type=hidden name=subject value="** Order Form **">

Another questiong pertaining to this, is does anyone know the field that this particular link (http://cgi.freedback.com/mail.pl)
for the message area or text in the email ? right now, i got the fields for to, from and subject, what about the body of the text ? Is there a default field that javascript uses or recognise ?

more on the second question:
but as stated in the previous thread, if one looks at the link that was provided, they were able to send an email using freedback's email and putting hte html or information into the email. How is this being done ? the link in question is
http://javascript.internet.com/forms/confirm-order.html

is there any way around it ?

Bernard