So that's how they do it - adding a message to mailto
The href="mailto:" tag is useful, and I know how to add a subject, but today I learnt how to add a message as well. The example comes from the DOI web site:
This bit of code:
<p>If you believe you have requested a DOI name that should be found, you may report this error to
<a href="mailto:doi-help@doi.org?subject=DOI Not Found&body=The%20following%20DOI%20was%20not%20found:%0D%0A...f">doi-help@doi.org</a>.
<b>Please include information regarding where you found the DOI in your message: http://www.journals.royalsoc.ac.uk/....pdf</b></p>
Gives this result:
The &body= tag gives the text of the email message. Neat.
This bit of code:
<p>If you believe you have requested a DOI name that should be found, you may report this error to
<a href="mailto:doi-help@doi.org?subject=DOI Not Found&body=The%20following%20DOI%20was%20not%20found:%0D%0A...f">doi-help@doi.org</a>.
<b>Please include information regarding where you found the DOI in your message: http://www.journals.royalsoc.ac.uk/....pdf</b></p>
Gives this result:
If you believe you have requested a DOI name that should be found, you may report this error to
doi-help@doi.org.
Please include information regarding where you found the DOI in your message: http://www.journals.royalsoc.ac.uk/media/d6lntlwywjn3hdu6ekdw/contributions/0/5/8/3/058352377848735w.pdf
The &body= tag gives the text of the email message. Neat.
4 Comments:
But unfortunately not all mail clients support mailto:
(or so I'm told ;) )
By Anonymous, at 10:15 pm
Just to say thanks, Was looking for this (couldn't remember)
By Anonymous, at 6:22 pm
Thank you, i've been searching for this for a while because I didn't want to use the PHP "mail()" function! :)
(It's 8:26PM EST here!)
By Matt, at 1:27 am
Hi thannks for sharing this
By Nicolas, at 7:28 pm
Post a Comment
<< Home