HTML: How to prefill mailto subject and content

Using "mailto" might be a bit of a no-no for some people, especially with all those spammers making millions from crawling the net for email addresses.

moneybath

However, if you still want to use this feature, you may want to prefill some data in the email client. To do that, format your "href" with some optional arguments:

<a href="mailto:address@domain.com?subject=title&amp;body=something">Mail Me</a>

It would be a good idea to urlencode() the subject and body fields.

You can also prefill CC and BCC fields. See source for more information.

[ Source ]

 
Copyright © Twig's Tech Tips
Theme by BloggerThemes & TopWPThemes Sponsored by iBlogtoBlog