# Fomating Php text for plain text email display

**URL:** <https://forum.kirupa.com/t/fomating-php-text-for-plain-text-email-display/159565>\
**Category:** programming\
**Created:** [August 18, 2005, 12:04pm UTC](https://forum.kirupa.com/t/fomating-php-text-for-plain-text-email-display/159565 "2005-08-18T12:04:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chup](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/chup/32/925_2.png) [@chup](https://forum.kirupa.com/u/chup)\
**Post date:** [August 18, 2005, 12:04pm UTC](https://forum.kirupa.com/t/fomating-php-text-for-plain-text-email-display/159565/1 "2005-08-18T12:04:59Z")

</div>

HI all,

I have a email php script and here is part of the code that determine the message of the mail

$message = "First Name: $rFirstName2

Last Name: $rLastName2

Nickname: $rNickName2

Email: $rEmail2

## Here how the message will display in email program that support html

First Name: User Name

Last Name: User Last

Nickname: Use NIc

Email: [user@asia.com](mailto:user@asia.com)

* * *

Pretty neat

But here how it display in email program that support plain text only

* * *

First Name: User Name Last Name: User Last Nickname: Use NIc Email: [user@asia.com](mailto:user@asia.com)

* * *

All into 1 line

Is there anyway i can modify the php code so that it display correctly on plain text format also?

Thanks!
