Web Hosting Talk







View Full Version : Jack's Formmail, receipient no line break


c3uc3
03-14-2005, 06:06 AM
Hi people,

Does anyone has any idea how to modify Jack's PHP formmail so that the receipient when upon receiving the email will be able to see line breaks between each field and input from the fields?


E.g.

Currently I receive email in this manner from the form...

Full_Name: XXXX
Address: XXXX
Home_Telephone: XXXX
Office_Telephone:
Mobile_Phone: XXXX
Pager:
email: XXXX
Nationality: XXXX
Birthdate: XXXX
NRIC_or_Passport: XXXX
Race: XXXX


Can it be in this manner?

Full_Name: XXXX

Address: XXXX

Home_Telephone: XXXX

Office_Telephone:

ezCore
03-14-2005, 07:21 AM
Seems easy

At the end of each line either add

\n

or

<br>

And it should do the job

c3uc3
03-15-2005, 12:28 PM
Hi, thanks for the reply however referring from the coding in PHP form Jack's Formmail, where do I put the

\n or <br> in the coding?

Didn't seems to find any place I can put \n in.

Can you assist?

stormraven
03-15-2005, 12:31 PM
I can, send me the .php file and I'll fix it.

Paul dot Embry at gmail dot com

ezCore
03-15-2005, 03:30 PM
Open formmail.php

Locate define("NEWLINE", ($newline)?$newline:"\n");

replace with

define("NEWLINE", ($newline)?$newline:"\n\n");

Pay attention to the \n\n

That's it.