Re: Mailto: tag, how do I insert line breaks..?

From: Date: Thu, 18 Jan 2001 08:02:46 +0000
Subject: Re: Mailto: tag, how do I insert line breaks..?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-35301@lists.php.net to get a copy of this message
Hi, thanks for the help.. The \r\n trick didn't work.. You can only see this back in the source.. But, the RFC "standard??" trick did work just perfectly.!!! Thanks Ignacio, I don't anything about the RFC.. Probably some standard which describes these special chars..? Will search for it to see if it can learn me some more things.. :-) Bye Bye David > > Hi, > > > > I have a non PHP questions which probably doesn't fit in this mailling > > lists, but I have a feeling that someone can help me because it is very HTML > > related. > > > > I was busy making a small piece of PHP echo code which generates a link > > which enables you to click this and startup your email software with a basic > > message in it.. > > > > The URL is basically the following: > > mailto:$email?body=Dear $name, We would like to inform > > you.... With kind > > regards, $sender&subject=Message send on $date about $subject &bcc=$bccopy > > > > When clicked you will get the $email text as email address, the Dear > > $name... etc as body of the email etc etc.. > > > > Now here the non-PHP questions.. I searched everywhere, but how can I get > > line breaks inserted IN the email program..?? > > After the 'Dear $name,' part I would like to have 2 line breaks.. Then after > > the We would like to inform you... another 2 breaks.. > > > > I tried \n, I tried <BR> (<BR> you simply see this as email text.).. > > > > Is this possible.. Hope someone understande the problem.. (I am not trying > > to get breaks in my source, or what you see on the screen, but line breaks > > in the email text.. > > > > Thanks. > > Bye Bye > > David > > > > RFC 2368 says that you use "%0D%0A" for newlines and "%20" for spaces (Section > 5: Encoding). Remember: the RFCs are your friends :) > > -- > Ignacio Vazquez-Abrams <ignacio@openservices.net> > > > >

« previous php.general (#35301) next »