We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17340
    • 70 Posts
    Formit's "emailConvertNewlines" works fine in the email rcvd by the site-administrator.

    unfortunately there is not such a property in the autoResponder

    1 or is there?

    -tried "&fiarConvertNewlines='1' " no luck

    2 alternatively; is there a way to include the sender of f.i. a Contact-form in the "emailTo" command?

    lmv
      • 3749
      • 24,544 Posts
      Looking at the code, I don't see any way to do it without hacking snippet code.

      You could try changing the line 71 of the autoresponder snippet from this:

      $message = $formit->getChunk($tpl,$placeholders);


      to this:

      $message = nl2br($formit->getChunk($tpl,$placeholders));
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 17340
        • 70 Posts
        Dear Bob, it works!!

        thanks a lot.

        if this is as simple as it is I donot understand why most sites do not have this included....

        thanks again
        lmv

        Quote from: BobRay at Dec 26, 2016, 08:10 PM
        Looking at the code, I don't see any way to do it without hacking snippet code.

        You could try changing the line 71 of the autoresponder snippet from this:

        $message = $formit->getChunk($tpl,$placeholders);


        to this:

        $message = nl2br($formit->getChunk($tpl,$placeholders));
          • 3749
          • 24,544 Posts
          The autoresponder code was created as an afterthought, and as far as I know, it was never updated. It should definitely include newline conversion as an option.

          Another way to go, BTW, is to put br or p tags in the Tpl chunk. Unlike my suggestion above, that won't be overwritten if you upgrade or reinstall the Login extra.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting