AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

Filter by custom fields

Topic prefix

AI Assistant
Notifications
Clear all

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

4 Posts
2 Users
0 Reactions
2,800 Views
tayo
Posts: 42
 tayo
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@tayo)
Trusted Member
Joined: 6 years ago
[#14401]

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.

 email notification html problem

3 Replies
Robert
Posts: 10716
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 2 months 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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@tayo)
Trusted Member
Joined: 6 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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@tayo)
Trusted Member
Joined: 6 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.

 email notification html problem table line

Share: