tags:

views:

425

answers:

4

Can you help me?

I need to make a Mailto link to my website which is suppose to contain either the product name or the product page URL in the subject section. How can I do it? Exp:When you get an email through ebay about a product you are selling or buying, you automatically know what product that email is about by seeing the product name in the subject section.

+1  A: 
<a href="mailto:[email protected]?subject=YourSubjectHere">Try This</a>

If you want something more advanced, you're going to have to code it from scratch (or use someone else's script). Try looking into PHP, ASP.NET, Ruby on Rails, etc.

Stefan Mai
+1  A: 

This page outlines the syntax of mailto URIs. What you are looking for is:

<a href="mailto:[email protected]?subject=This Is My Product">
lc
+2  A: 

I've run into problems with this before when I didn't url encode the value, so I would suggest (using lc's example):

<a href="mailto:[email protected]?subject=This+Is+My+Product">

or

<a href="mailto:[email protected]?subject=This%20Is%20My%20Product">