Re: \n problems when creating an email

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If the recipient is gmail, then you need to use \r\n because Gmail is
following in the Windows way of ignoring standards... :-(

On Mon, February 11, 2008 6:10 am, Angelo Zanetti wrote:
> Hi guys,
>
> I am making email text based on some fields the user fills in and then
> email
> the admin the details.
>
> I am having a problem where sometimes the \n (new line) works and
> sometimes
> it just does nothing. Im not sure the cause but I cant seem to figure
> it
> out.
>
> Here is a segment of code:
>
> 						."\nHow far would they be
> prepared to travel to "
> 						."\n event venue?
> \n\t\t\t\t\t".  $travel
>
> 						."\nDo you have a specific
> location "
> 						." \n of preference?
> \n\t\t\t\t\t".  $locationPref
> 						."\n City or country
> preference:\t".  $cityPref
>
>
> Here is the output:
>
> How far would they be prepared to travel to  event venue?
> 					Z Logic e Business Cape
> Do you have a specific location
>  of preference?
> 					Z Logic e Business Cape
>  City or country preference:	Z Logic e Business Cape
>
>
> As you can see the first line doesn't go to the next row before
> "event"
>
> But it works fine for the location \n preference
>
> Is there any reason it works for the 1 piece of code and not the next?
> Do
> spaces affect anything?
>
>
> Kind regards,
> Angelo Zanetti
> Application Developer
> ________________________________
>
>
> Telephone: +27 (021) 552 9799
> Mobile:       +27 (0) 72 441 3355
> Fax:            +27 (0) 86 681 5885
>
> Web: http://www.elemental.co.za
> E-Mail: angelo@xxxxxxxxxxxxxxx
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux