Skip to content
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

Closed
torcolato opened this issue Aug 16, 2018 · 2 comments
Closed

HTML Mails broken #567

torcolato opened this issue Aug 16, 2018 · 2 comments

Comments

@torcolato
Copy link

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
Copy link
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

@heavygale
Copy link
Contributor

@torcolato Workaround: Remove all newlines from your HTML email template. Works fine for me.

@d00p d00p added this to the 0.11.0 milestone Oct 13, 2019
@d00p d00p modified the milestones: 0.11.0, 0.10.38 Oct 8, 2022
@d00p d00p closed this as completed Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants