Re: How to format text in a mailto:
- From: abc <abc@xxxxxxxx>
- Date: Fri, 23 Jun 2006 23:15:01 GMT
On Fri, 23 Jun 2006 21:58:40 +0100, Martin Jay wrote:
In message <vuXmg.76531$S61.45263@edtnps90>, abc <abc@xxxxxxxx> writes
Could someone please help with a mailto action
I am trying something like this, I want the text in $the_message to be
formatted. The results I get is unformatted. line 1 line 2 line 3 line 4
... line etc.
<?
<a href='mailto:email@xxxxxxx&subject=$subject&body=$the_message'>mail me</a>
?>
<? $the_message=
" line 1\n"
." line 2\n"
." line 3\n"
." line 4\n"
." line 5\n"
." line 6\n"
." line 7\n"
." line etc.\n";
?>
Ouch! Using the client's default email program in this way is very
unreliable. Not everyone has a (default) mail program, and not all mail
programs understand 'body=.' :(
But if you still want to go down that route replace \n at the end of
each line with %0d.
Thanks for the advice Martin, sounds like I would be opening up a can of
worms if I do it my way. I"ll use a form instead, the client can put their
email address in and sent it.
Paul
.
- References:
- How to format text in a mailto:
- From: abc
- Re: How to format text in a mailto:
- From: Martin Jay
- How to format text in a mailto:
- Prev by Date: Re: Issues with array counts
- Next by Date: Re: How to format text in a mailto:
- Previous by thread: Re: How to format text in a mailto:
- Next by thread: Re: How to format text in a mailto:
- Index(es):
Relevant Pages
|