Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Web
Expertise: All
Sep 7, 1999



Application Security Testing: An Integral Part of DevOps

Use an HTML Form to Call the User's E-mail Application

Although you can process e-mail addresses using server-side code, sometimes it is easier to let your server-side code set up the original parameters for the e-mail and then just let the user's own e-mail application handle the rest. Here's a method to get the process started from within an HTML form:

<script language="javascript">
function dosub() {
location.href='mailto:' + document.forms[0].text1.value + '?subject=' +
<FORM action="" id=form1 method=post name=form1>
Email address: <INPUT id=text1 name=text1 value='ken_cox@hotmail.com' ><br>
Subject:  <INPUT id=text2 name=text2 value='WebBuilder Tip' > <br>
<INPUT type=button onclick="dosub();" value=" OK ">
Ken Cox
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date