Woocommerce(wordpress)电子邮件类型显示'plain / text'而不是'text / html' [英] Woocommerce(wordpress) email type displaying 'plain/text' instead of 'text/html'

查看:219
本文介绍了Woocommerce(wordpress)电子邮件类型显示'plain / text'而不是'text / html'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有订单的Woocommerce电子邮件设置都显示纯文本作为电子邮件类型,它也应显示HTML / Multipart,但它是限制或覆盖纯文本。我们如何获得HTML / Multipart的选项。

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.

我已经在functions.php中添加了一个功能。

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' );

但这不起作用

推荐答案

可能与您的服务器设置有关。要启用此功能,您必须安装 php-gd php-xml php -xmlrpc 然后重新启动您的服务。

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.

这篇关于Woocommerce(wordpress)电子邮件类型显示'plain / text'而不是'text / html'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆