New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML Mails broken #567

Open
torcolato opened this Issue Aug 16, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@torcolato

torcolato commented Aug 16, 2018

When setting up a HTML email template (i.e. new new_database_by_customer) the mail being send is broken.

System information

  • Froxlor version: 0.9.39.5
  • Web server: apache2
  • SMTP server: postfix
  • OS/Version: Ubuntu 18.04

Steps to reproduce

  1. fill in HTML code on the admin_templates.php page
  2. let froxlor send mail
  3. view raw mail in MUA
  4. see that all newlines have been converted to '<br/>' which breaks the design of the mails

Expected behavior

  1. no conversion to <br/> of newlines so that HMTL mails get displayed correctly

Actual behavior

  1. line 257 of customer_mysql.php does the str_replace.
    $mail->MsgHTML(str_replace("\n", "<br />", $mail_body));

I would love to be able so send out html mails!
Thanks!

@d00p

This comment has been minimized.

Show comment
Hide comment
@d00p

d00p Aug 17, 2018

Member

Well this is intended, you are not allowed to enter HTML code due to security.
If froxlor will enable HTML usage in templates could be something for the feature, possibly by using some richtext-editor or similar

Member

d00p commented Aug 17, 2018

Well this is intended, you are not allowed to enter HTML code due to security.
If froxlor will enable HTML usage in templates could be something for the feature, possibly by using some richtext-editor or similar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment