how to implement a button with Forward function in an email?

W

William W. Cai

Hi List,

I am required to implement such a function in an email.

The HTML format email contains a field and a button. Once user click the
button, program will gather the information(email address) in the field and
forward this email to it.

I am thinking about the implemented by JavaScript/VBScript, but don't find
the solution yet. Could anybody supply some clues?

Any response is great appreciated!

-William
 
D

David Dorward

William said:
The HTML format email contains a field and a button. Once user click the
button, program will gather the information(email address) in the field
and forward this email to it.

So you want a form in an email, that when submitted will not submit to an
HTTP address, but will create a new email in the user's email client?

Forget it.

A regular form which submits to an HTTP address is dodgy enough that I
wouldn't expect it to work reliably.

I wouldn't expect JavaScript to work ever - and be very likely to trigger
spam filters.

JavaScript that controls the email client? No chance.
 
W

William W. Cai

I am sorry. I used to work on distributing system. Have no experience on the
desktop application. Could you show me an example? :p Maybe I ask too much.

-William
 
W

William W. Cai

Thanks David!

I understand the behavior is somewhat like spam. Then let's change the
senario as below. Any solution for that?

1. User input friends' email address to the text box
2. User click forward button
3. The forward windows shows with the friends' email address in send list.

Let's not only focus on JavaScript. Is it possible to implement?

TIA

William
 
V

VK

The HTML format email contains a field and a button. Once user click the
button, program will gather the information(email address) in the field and
forward this email to it.

You cannot "send" e-mails other way then via HTML form submission. But
you can prepare an e-mail with all required fields filled, and it's up
to user then send it or dismiss it.

<form method="get" action="mailto:">
Your e-mail:<br>
<input type="text" name="to" value="(e-mail address removed)"><br>
Your message<br>
<textarea name="body" cols="32" rows="4">Blah-blah-blah</textarea>
<input type="hidden" name="subject" value="MailFromMySite">
<input type="hidden" name="cc" value="(e-mail address removed)"><br>
<input type="submit" value="Prepare e-mail to be sent">
</form>

And don't bother with escape sequences in subject (%20 etc). They will
not be processed for a locked security hole issues (there was one smart
a** a couple of years ago).
 
M

Matthew Lock

William said:
I am required to implement such a function in an email.

The HTML format email contains a field and a button. Once user click the
button, program will gather the information(email address) in the field and
forward this email to it.

What's the point? Email clients already have a button to forward the
email to someone else.
 
D

David Dorward

William W. Cai wrote:

Please do not top post.
http://www.faqs.org/rfcs/rfc1855.html
1. User input friends' email address to the text box
2. User click forward button
3. The forward windows shows with the friends' email address in send list.

So this is exactly like a regular forward ... except the email address gets
entered first.

Not possible, and the user already knows how their forward button works -
plus they get to use their email client's address book with the regular
methods of selecting to whom the message gets forwarded.
 

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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top