Previous Topic: Tips and Techniques

Next Topic: Accessing Web Option Through Another Website

Adding Buttons to Send E-Mail

A useful feature in many websites allows users to click on a button and send an email, automatically passing information from the screen as data (To, Subject, Message, and so on) into the email itself.

A function called SENDEMAIL is included in the default YSCRIPT.JS file, which has five arguments (parameters): TO, CC, BCC, SUBJECT, and BODY. This function performs all the processing necessary to create an email.

Use the following code to create a button that sends e-mail:

<INPUT TYPE=”BUTTON” VALUE=”button-value”
 onclick=”SENDEMAIL(to-value, cc-value, bcc-value, subject-value, body-value)”>

To summarize:

Notes: