Ok, it’s not the plugin’s fault. Turns out some webmail services censor header parts (like body) of messages.
For everyone interested in supporting RTL, the following seems more compatible.
I’ve also used auto and not rtl to support message contents in LTR content in RTL sites, and vice versa.
Although in some cases (e.g. Gmail) it checks the plugin’s translation and not the message’s content (for example, if the word “from” is in English, then “auto” will be LTR even if the message’s content is in a RTL language, and vice versa).
function filter_wpcf7_mail_html_header($tag) {
$tag .= '<div dir="auto">';
return $tag;
};
function filter_wpcf7_mail_html_footer($tag) {
$tag = '</div>' . $tag;
return $tag;
};
add_filter( 'wpcf7_mail_html_header', 'filter_wpcf7_mail_html_header');
add_filter( 'wpcf7_mail_html_footer', 'filter_wpcf7_mail_html_footer');