NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page mailto in html

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 02-24-2008, 03:35 PM THREAD STARTER               #1 (permalink)
NamePros Member
 
xarzu's Avatar
Join Date: Apr 2007
Posts: 28
xarzu is an unknown quantity at this point
 



mailto in html


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:
HTML Code:
<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:

HTML Code:
<a href="mailto:usernamegmail.com?subject='the subject'">this works too</a>
But I have yet to figure out how do combine the two:
????: NamePros.com http://www.namepros.com/programming/436654-mailto-in-html.html
HTML Code:
<a href="mailto::username@gmail.com?subject='the subject and
the body'?body='test'">help</a>
Does anyone know how to do this?
__________________
There is nothing stronger than human will. Nothing can stop it.
xarzu is offline  
Old 02-24-2008, 03:44 PM   #2 (permalink)
NamePros Expert
 
Peter's Avatar
Join Date: Nov 2003
Location: Scotland
Posts: 5,069
Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute
 


Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
It should be.

HTML Code:
<a href="mailto://username@gmail.com?subject=the%20subject%20and%20the%20body&body=test">help</a>
Ensure you url encode the subject and the body. You also do not need to enclose it like you had in single quotes.
__________________
Manage your portfolio using my new Domain Portfolio Management script.
Securing Your Domain Name From Theft
Peter is offline  
Old 02-24-2008, 03:47 PM   #3 (permalink)
NamePros Member
Join Date: Feb 2008
Posts: 76
drjeff is an unknown quantity at this pointdrjeff is an unknown quantity at this point
 



<html>
<body>
<a href=mailto:username@emailprovider.com?subject=web-site-inquiry&body=this>Contact Us</a>
</body>
</html>
__________________
No Ref/Aff links permitted.
Last edited by drjeff; 02-24-2008 at 03:50 PM.
drjeff is offline  
Old 02-24-2008, 04:58 PM   #4 (permalink)
NamePros Regular
 
Richard's Avatar
Join Date: Jan 2006
Posts: 571
Richard is a name known to allRichard is a name known to allRichard is a name known to allRichard is a name known to allRichard is a name known to allRichard is a name known to allRichard is a name known to allRichard is a name known to all
 


Save a Life Tsunami Relief AIDS/HIV Save a Life
Code:
<a href="mailto:usernamegmail.com?subject=the%20subject&body=the%20body">Contact</a>
__________________
"Failure is not the only punishment for laziness; there is also the success of others."
Richard is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 11:23 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger