Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email Message Input 2

Status
Not open for further replies.

bill1one

Programmer
Sep 29, 2004
93
US
Is there a way that you can input a message into an email, much in the same way you use the ?subject= to input a subject in an email link?
 
That works well. Thanks. How do you get a subject too?
 

You can use many fields:

&cc=
&bcc=
&body=
&subject=

Hope this helps,
Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Just to clarify, you would append them to the url, for example:

Code:
mailto:me@you.com?cc=you@somewhereelse.com&subject=Hi&body=Hello

You'd need to make sure your URL was validly escaped, of course.

Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
I know that this is getting quite drawn out, but what about line breaks within the subject. Is it possible?
 

Try using "\n".

Remember that due to URL length restrictions some browsers have, you won't be able to send very long messages this way.

Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top