Forum Home
Press F1
 
Thread ID: 90663 2008-06-12 00:01:00 Adding a few lines of text by default on an webpage email link. John W (523) Press F1
Post ID Timestamp Content User
677627 2008-06-12 00:01:00 Hi there

Im using Frontpage and Im wondering how I can go about adding a few words of text to the Body of an email link on a Webpage.

I have the Subject matter sorted out,and Ive seen it done in Emails before where pre-worded text sits in the Email body, just cant workout how to do it in Frontpage, or the correct way to do it in code.

For example,
<a href="mailto:meandyou@xttra.co.nz?subject=I want to attend the AGM next week">meandyou@xttra.co.nz</a>
Does the Address & subject lines just fine, how do I add text to the body.

Thanks

John in Mosgiel.
John W (523)
677628 2008-06-12 03:00:00 Copied from here (www.ianr.unl.edu):


Add entry in the "Body" field:

body=Your message here

Within the body use "%0A" for a new line, use "%0A%0A" for a new line preceded by a blank line (paragraph)

Hope that helps :)
davehartley (3487)
677629 2008-06-12 05:15:00 Thanks for the link, BUT it doesnt work .

I guess I'll have to find an Email link where text is already pre-entered into the body and view the code .

John .
John W (523)
677630 2008-06-12 08:06:00 Hmmm... I've just tried it and it works ok for me ... here's my code:


<a href="mailto:someone@somewhere.com?subject=Hello There Everybody&body=Here is some text">Email me</a>

Is this similar to what you had?
davehartley (3487)
677631 2008-06-12 08:29:00 I'd say it'd come down to support (mailto:someone@somewhere.com?subject=Hello There Everybody&body=Here is some text) from the email client.

Edit: The above worked in Thunderbird 2 for me.
sal (67)
677632 2008-06-12 08:49:00 Ive managed it, While this link is pretty good, like lots of ideas and suggestions, if you want to add text to the Body, you need to add a & not the ? they suggest in the Link page

www.ianr.unl.edu

Thanks to all who replied.

John.
John W (523)
677633 2008-06-12 09:58:00 ...if you want to add text to the Body, you need to add a & not the ? they suggest...

In URLs, a "?" separates a path from a query string and "&" separates name/value pairs. For example in -

mailto:steve@me.com?subject=Hi Steve&body=Just catching up

- the path is blue, the query string is green and the names of each name/value pair is underlined.
sal (67)
1