Skip to content

Planet-Source-Code/g-m-faggiano-advanced-mailto__2-1811

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

Advanced Mailto:

Description

Ok, we've all seen the tag to open a new mail message with a specified e-mail address ... what's the limitation to this? Simple, you can't modify the subject and body unless you make them a single string of text with no spaces. Javascript is your way around this limitation. Small code, simple to impliment and use.

More Info

only works in browsers that support javascript (not much of a limitation).

Submitted On
By G. M. Faggiano
Level Beginner
User Rating 4.3 (30 globes from 7 users)
Compatibility
Category Browser/ System Services
World Java
Archive File

Source Code

<SCRIPT language="JavaScript">
<!--
/* Mailto enhancement by: Fibdev Software, Inc. - Place this in the head of the document */
function e_mailer()
{
var e_add= 'cservice@fibdev.com';
var subj= 'Your Subject Here!';
var e_body= 'message text goes here ...';
window.location="mailto:"+e_add+"?subject="+subj+"&body="+e_body;}
//-->
</SCRIPT>
// Place this as the link to your new mailto:
<A HREF="javascript:e_mailer()">Mail Me!</a>
// or ...
<A HREF="javascript:e_mailer()"><img src="images/e-mail.gif"></a>
// Simple and effective.
// enjoy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published