Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Issue with email
  • 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-Typetext/html?
  • Issue solved by:

    Config -> 'is_html' => true,

    And Now I am using <br> for new line.

    But how to use \r\n ? 
  • In HTML, whitespace is not relevant, so '\r\n' doesn't do anything?
  • Sorry for delay.

    Yes, '\r\n' doesn't do anything.



  • 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.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion