Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Issue with email
Solovej
February 2014
Hello!
I want to set up new line, I already tried: \r\n and <br>
It doesn't work.
$_POST2 = Security::xss_clean($_POST);
config:
'charset'
=> 'utf-8',
'encoding'
=> '8bit',
Any other solutions?
Where I can set up
Content
-
Type
:
text/html
?
Solovej
February 2014
Issue solved by:
Config -> 'is_html'
=> true,
And Now I am using <br> for new line.
But how to use \r\n ?
Harro
February 2014
In HTML, whitespace is not relevant, so '\r\n' doesn't do anything?
Solovej
March 2014
Sorry for delay.
Yes, '\r\n' doesn't do anything.
Harro
March 2014
What I meant was that is isn't supposed to do anything.
"<p>test</p>"
and
"<p>
test
</p>"
will display exactly the same in HTML. So it is pointless adding \r\n to the HTML body of the email.
It is be useful if you send plain text emails, or if you add an alt-body manually.
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
March 2014
Solovej
March 2014