Re: How to format text in a mailto:
- From: Martin Jay <martin@xxxxxxxxxxxxxxxx>
- Date: Sun, 25 Jun 2006 04:12:43 +0100
In message <njgng.83583$A8.42341@clgrps12>, abc <abc@xxxxxxxx> writes
On Sat, 24 Jun 2006 03:06:13 +0200, Rik wrote:Martin Jay wrote:In message <vuXmg.76531$S61.45263@edtnps90>, abc <abc@xxxxxxxx> writesCould someone please help with a mailto actionOuch! Using the client's default email program in this way is very
<a
href='mailto:email@xxxxxxx&subject=$subject&body=$the_message'>mail
me</a>
<? $the_message=
" line 1\n"
." line etc.\n";
unreliable. Not everyone has a (default) mail program, and not all
mail programs understand 'body=.' :(
It wouldn't be my choice either.
But if you still want to go down that route replace \n at the end of
each line with %0d.
And in general: urlencode()
I tried urlencode () formatting was there also a + sign between each word
which makes reading a bit difficult.
I must be doing something wrong
I think Rik meant rawurlencode(), which is similar to urlencode() but converts spaces to %20 instead.
And I was mistaken when I wrote \n should be replaced with $0d. It should be replaced with %0a. %0d is actually the equivalent of \r, however I doubt it would make any difference as far as most email applications are concerned.
Anyway, I think the form method you're looking into is probably the best way to go, however be aware of the points '427SOHC' made.
I recently set up a simple response form for a friend's website. The results are written to a database instead of being emailed anywhere.
--
Martin Jay
Phone/SMS: +44 7740 191877
Fax: +44 870 915 2124
.
- References:
- How to format text in a mailto:
- From: abc
- Re: How to format text in a mailto:
- From: Martin Jay
- Re: How to format text in a mailto:
- From: Rik
- Re: How to format text in a mailto:
- From: abc
- How to format text in a mailto:
- Prev by Date: Re: How to format text in a mailto:
- Next by Date: Re: best php script like rent dot com
- Previous by thread: Re: How to format text in a mailto:
- Next by thread: How to check form -> email
- Index(es):
Relevant Pages
|