Skip to main content
Topic: Need format the Body Text on email answer after ADD (Read 771 times) previous topic - next topic

Need format the Body Text on email answer after ADD

Hi, I working with the answer email after add a record, i want tabulate with CR and LF the output in the body email.
How can i do that?

Today on body email
Date:$date Fieldname1, xxxxxxxx xxxxxxxxxxxxxx xxxxxxxxxxx
need

Date:$date   (CR;LF)<----------
 Fieldname1, xxxxxxxx    CRLF  <-----------
xxxxxxxxxxxxxx  (CRLF)<-----------
xxxxxxxxxxx

Thanks in advance

 

Re: Need format the Body Text on email answer after ADD

Reply #1
@ocalle‍ if you are using HTML, it would be <br>, but if are using PHP it would be <?php echo "\n"; ?> for UNIX or <?php echo "\r\n"; ?> for Windows. To be on the safe side, use "\r\n" as it also works for UNIX too.

Summary
CRLF = "\r\n" in PHP