Notifications
Clear all

wpForo 1.x.x [Closed] email notifications (new topic) and html (table, color, br...)

4 Posts
2 Users
0 Reactions
1,817 Views
tayo
Posts: 42
 tayo
Topic starter
(@tayo)
Trusted Member
Joined: 4 years ago

Hi.
Questions about email notifications.
I wrote it using HTML (table, br, color....) on the post.
However, nothing seems to apply to the email notification I received.
Please refer to the attached image.

Is this working properly? Or, what's wrong?
If it's wrong, what should I do?
Thank you.

3 Replies
Robert
Posts: 10591
Admin
(@robert)
Support Team
Joined: 9 years ago

Hi @tayo,

Please note, that emails are not articles and have HTML tag restrictions. There are a few HTML tags that are allowed for email templates. The table <table>, row <tr> and cell <td> tags are not allowed in emails. You can customize the allowed HTMLs using a code like this: https://wpforo.com/community/how-to-and-troubleshooting-2/email-template-logo-and-images-are-not-showing/#post-30372

But, first try this solution, this may allow all post HTMLs in your email template: https://wpforo.com/community/how-to-and-troubleshooting-2/allow-more-html-tags-in-emails/paged/3/#post-18556

tayo
Posts: 42
 tayo
Topic starter
(@tayo)
Trusted Member
Joined: 4 years ago

Hi.
Thank you for solving my problem! Email now looks the same as the post. Thank you!!

However, I have one thing to tell you.
I found out that the site was down because of the code you told me, and through debug, I found the cause of the problem was ' ; '.
So I modified it, and it worked normally.

This is the third line of the code below.
I'm not a developer, so I don't know if this is right, but Debug's gone anyway. Please refer to it.

https://wpforo.com/community/how-to-and-troubleshooting-2/allow-more-html-tags-in-emails/paged/3/#post-18556

Thanks again for your help.

tayo
Posts: 42
 tayo
Topic starter
(@tayo)
Trusted Member
Joined: 4 years ago

Oh, one more question.
If you look at the attached image, there is no line of <table> in the mail.
Is there any way to make this visible?

For your information, I added the CSS below to make the table line visible on the post.

#wpforo #wpforo-wrap .wpf-content table, #wpforo #wpforo-wrap .wpf-content table tr, #wpforo #wpforo-wrap .wpf-content table tr td, #wpforo #wpforo-wrap .wpf-content table tr th{
border:1px solid;
}

Thank you.