• 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)
  • 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!

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

    Thread Starter 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.

    Thread Starter Peter Raschendorfer

    (@petersplugins)

    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)
  • The topic ‘change request – send email action’ is closed to new replies.