Re: How to format text in a mailto:



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
.



Relevant Pages

  • Re: How to format text in a mailto:
    ... Ouch! ... Using the client's default email program in this way is very ... Not everyone has a mail program, ... 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. ...
    (alt.php)
  • Re: Unable to open JPEG files in Outlook Express 6.0
    ... identify the sender's mail program. ... Also you can see in the message source whether the sender included the ... > Thx, C in Phoenix ... >> What email program do they use? ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Cant stop Outlook Express from opening
    ... Mike - http://pages.prodigy.net/michael_santovec/techhelp.htm "Mike Craig" wrote in message ... > If I send email from a link on a web site, to the web master for instance,> Outlook Express opens, rather than my default email program. ... I have gone to> "Set Program Access and Defaults" and removed OE as my default mail program. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: changing text when people reply
    ... I suspect it is the email program the ... the message is in the format they ... Their mail program is working exactly the way ...
    (microsoft.public.outlook)
  • Re: Cant stop Outlook Express from opening
    ... What is listed in the Windows File Association for URL:MailToProtocol for the Application ... > The default mail program shown in IE TOOLS/INTERNET OPTIONS/PROGRAMS/E-mail ... >>> How can I stop Outlook Express from opening? ... rather than my default email program. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)