Sunday 26 February 2012

Mail

You should be able to form the email by using this syntax (you can add other fields, like cc, as well):

mailto:emailaddress?subject=my%20subject&body=my%20body

For example:

Code:
<form method="GET" action="mailto:email-address">
<input type="hidden" name="subject" value="test">
<input type="hidden" name="body" value="test">
<input type="submit" value="Send Email">
</form>
or as a link:

Code:
<a href="mailto:emailaddress?subject=test&amp;body=test">email</a>
You can always disguise the link as a button

No comments:

Post a Comment