How to skip to a new line in php

adam_g

Expert Member
Joined
Aug 18, 2011
Messages
1,243
Reaction score
309
Location
127.0.0.1
Hey guys

I am a total noob when it comes to php. Does anyone know how to skip to a new line

Example:

Kind Regards.

Adam.

My current code is:

define('EMAIL_GV_CLOSURE','Kind Regards, (WHAT_TO_PUT_HERE) adam');

Ive tried "\n", "\n\n" "<br>" nothing works. :cry:

Your advice would be greatly appreciated. :)
 
It should depend on the mime type of the email being sent. If you're sending plain text email then '\n' should work. If you're sending html email then use '<br>'.
If you're sending both them you need 2 defines and to append each to their relevant mime section in the email..
 
Im using notepad++ Ok ill look for HTML email Editor?

I tried: define('EMAIL_GV_CLOSURE','Kind Regards, <br> adam'); In notepad++ tho

An html editor isn't necessary. You're defining a php constant here. Just use double br tags as mentioned.

It should depend on the mime type of the email being sent. If you're sending plain text email then '\n' should work. If you're sending html email then use '<br>'.
If you're sending both them you need 2 defines and to append each to their relevant mime section in the email..

This looks to be a zencart script, with the rest of the body being html. I'm assuming it would do the plaintext automagically.
 
You're using single quotes, which means that it will be interpreted literally - Use double quotes.
 
Thanks guys im yes it is zencart im busy with a new site. Anyways ill try this again later with double quotes :)
 
Top
Sign up to the MyBroadband newsletter
X