We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16610
    • 634 Posts
    I have odd problem with eForm 1.4.4.6 and MODx 1.0.2:

    When using eForm parameter
    &sendAsText=`1`


    all empty lines are ignored in email.

    If report chunk is something like
    Line 1
    
    Line 3
    


    the email will be
    Line 1
    Line 3
    


    I tried to add \r\n to the report chunk but that didn’t work either. I’m absolutely sure &sendAsText=`1` parameter has worked just fine before. I’m now confused if this problem is related with eForm version, MODx version or maybe something else?
      Mikko Lammi, Owner at Maagit
      • 36416
      • 589 Posts
      Quote from: Lammikko at Jan 29, 2010, 02:27 AM

      I tried to add \r\n to the report chunk but that didn’t work either. I’m absolutely sure &sendAsText=`1` parameter has worked just fine before. I’m now confused if this problem is related with eForm version, MODx version or maybe something else?

      I recall empty lines being stripped from chunks in some Evolution versions (SVN only, not releases?)
      You could try storing form templates in files with this modification:
      http://modxcms.com/forums/index.php/topic,36942.msg222977.html#msg222977
        • 16610
        • 634 Posts
        Storing templates as files worked! Thank you very much smiley

        The source of the initial problem remains, but I won’t dig it any further.
          Mikko Lammi, Owner at Maagit