Woocommerce(wordpress) email type displaying 'plain/text' instead of 'text/html'

邮差的信 提交于 2019-12-11 09:06:29

问题


The Woocommerce email settings for all the orders are showing 'Plain text' as Email type, it should show HTML/Multipart too, but it is restricting or overriding to Plain Text. How can we have the options of HTML/Multipart.

I have added a function below to functions.php

function wps_set_content_type(){
    return "text/html";
}
add_filter( 'wp_mail_content_type','wps_set_content_type' );

but this does not works


回答1:


It may be related to your server settings. To enable such feature, you have to install php-gd, php-xml and php-xmlrpc then restart your service.



来源:https://stackoverflow.com/questions/30139808/woocommercewordpress-email-type-displaying-plain-text-instead-of-text-html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!