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.
How can i do this?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
-
Why does the box-shadow property not apply to a
This page [Link Dead] outlines the syntax of mailto URIs:
Address message to multiple recipients
Add entry in the "Subject" field
Add entry in the "Copy To" or "CC" field
Add entry in the "Blind Copy To" or "BCC" field
Add entry in the "Body" field
What you are looking for is:
Note, it's probably a good idea to URL encode the spaces with either a
+
or a%20
:Internet Archive:
Related Stackoverflow Questions:
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.
I've run into problems with this before when I didn't url encode the value, so I would suggest (using lc's example):
or