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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MailTo: Parameters

Status
Not open for further replies.

fenneraj

Programmer
Jul 29, 2003
21
SE
Hi!
I need to be able to build an email using the URL MailTo function. I can attach the subject line and Body, the problem i have is that i can not get the body text to do a new line.
This is what i have so far:
<a href=&quot;mailto:#email_address#?Subject=MyAgent User Name and Password&Body=Dear #agent_name#,
As you may be aware, as the surveys of the SRs have now been put online&quot;>CLIK</a>

I would like to be able to put in a line break after the greeting.... does any one have any ideas??

Regards
Andrew Fenner
 
A line break can be inserted using \n in the text of your message. Or, you could try \r (I've had limited success with this one).

Like this:
Code:
<a href=&quot;mailto:#email_address#?Subject=MyAgent User Name and Password&Body=Dear #agent_name#,
\n\n
Code:
As you may be aware, as the surveys of the SRs have now been put online&quot;>CLIK</a>

Good luck,
-Ron

-We all play from the same deck of cards, it's how we play the hand we are dealt which makes us who we are.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top