Support » Plugin: HTML Forms » change request – send email action

  • Resolved Peter Raschendorfer

    (@petersplugins)



    When inserting a complete HTML code into the message body the HTML is destroyed by automatically inserted <br> tags on sending. The only possibility to avoid this is to insert the complete HTML code without line breaks – which is not very comfortable. There should be an option to disable automatic conversion of line breaks into <br> tags.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Lap

    (@lapzor)

    Hi,

    You may be able to prevent this behavior by setting the content to text/plain instead of text/html, but I’m not sure if that will actually work at this time. I’ll discuss it with Danny later today.

    In the meantime, you could make your own Email action, copy this file and give it a new name (like myEmail.php) and comment out or delete line 116.

    https://github.com/ibericode/html-forms/blob/master/src/Actions/Email.php

    Hope that helps. If you have any questions, please let us know!

    Plugin Contributor Lap

    (@lapzor)

    This issue is solved in latest version of HTML forms. Thank you!

    Peter Raschendorfer

    (@petersplugins)

    Thanks a lot for paying attention to this issue. In the meantime my solution was to create the HTML code in an editor and to minify it before pasting it into the message box. Everything works fine at the moment and there’s no need for me to change the HTML text. I’ll give it try the next time I have to change something.

    Just wanted to let you know that I had to make a change today and so I changed the minified HTML code back to a readable one. Works like a charm now!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.