New Lines In Message Not Showing Up |
I have now been able to send emails OK.
How ever when I revive them they do not show my new lines its just in all one line How do I make sure it displays the correct format. PHP Code: $this->load->library('email'); Config > email.php PHP Code: <?php
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
Or just enclose the message in nl2br.
Normally with HTML emails I would send the data to a view and return it as a string to use in the email message field. Gives a much cleaner controller code and keeps html in views. You also need to send the entire message as a full html page. Best wishes, Paul. |
Welcome Guest, Not a member yet? Register Sign In |