News:
 
Welcome, Guest. Please login or register.
Did you miss your activation email?


+  Webmaster Key Forums
|-+  Webmaster Corner
| |-+  Site Design and Web Authoring
| | |-+  mailto in html
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Send this topic Print
Author Topic: mailto in html  (Read 1474 times)
Complete
Limited Member

Posts: 3


« on: February 24, 2008, 10:40:25 PM »

I am trying to use the tag "mailto" in an HTML file to prompt the user to email me.  Specifically, I want to have the subject and the body of the email message already filled in when the user sends me the email.

So far, I have managed to have a hyperlink where the body is already filled in:

<a href="mailto::username@gmail.com?body='test'">this works</a>I have also managed to have a hyperlink where the subject line is already filled in:

<a href="mailto:usernamegmail.com?subject='the subject'">this works too</a>

But I have yet to figure out how do combine the two:
<a href="mailto::username@gmail.com?subject='the subject and
the body'?body='test'">help</a>

Does anyone know how to do this?
Report to moderator   Logged
SensoVision
Administrator
Veteran
*****
Posts: 5 860


I'm proud user of Debian GNU/Linux OS


WWW
« Reply #1 on: February 25, 2008, 12:33:06 AM »

hi Complete, so you wish to prefill not only subject but body as well? Not sure why you wish to do this as IMHO it's sender should do this, isn't it? Smiley Anyway here how you need to form mailto line:
Code:
<a href="mailto:email@domainexample.net?subject=Subject sample&body=body of your subject">href
mailto example</a>
please note that you don't need to use single quotes as they would get into body of e-mail as well(at least in certain mailers e.g. Thunderbird).

let me know if it helps.
Report to moderator   Logged

Denis
donecweb
Key Master
Veteran
*****
Posts: 1 173


DonecWeb


« Reply #2 on: February 25, 2008, 06:12:45 PM »

Hi Complete,

You should consider using a Obfuscated or hidden email address in your mailto statement to keep spiders from harvesting your email address to sell to people wanting mailing list like for sending spam. I have found that OELC (Obfusticated Email Link Creator) from....
http://members.tripod.com/semper.fi/oelc/index.htm
and mailto obfuscator from....
http://www.awes.com/obfuscator/
Are very easy to use and work well.
Report to moderator   Logged

DonEc Web

Links and accurate information provide the best answer, while garbage in provides garbage out.
Pages: [1] Go Up Send this topic Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!