ashhitch / wp-graphql-send-mail
通过 WPGraphQL 发送电子邮件
v1.2.0
2021-01-27 08:14 UTC
Requires
- wp-graphql/wp-graphql: >=0.3.8
This package is auto-updated.
Last update: 2024-08-27 16:31:36 UTC
README
关于传统WordPress站点,发送电子邮件是一件简单的事情,这个插件使得在使用WPGraphQL时通过简单的突变(mutation)发送电子邮件变得容易。
功能
- 在管理员中设置允许的来源列表
- 在管理员中设置CC地址
- 在管理员中设置默认的发件人地址
Composer
composer require ashhitch/wp-graphql-send-mail
使用方法
mutation SEND_EMAIL {
sendEmail(
input: {
to: "test@test.com"
from: "test@test.com"
subject: "test email"
body: "test email"
clientMutationId: "test"
}
) {
origin
sent
message
}
}
为了尝试停止未经授权的电子邮件,您可以设置一个可以发送突变(mutation)的域列表。
这些设置在WordPress管理中的 设置 > WPGraphQL 邮件
下
支持
其他 WpGraphQl 插件
想通过 WPGraphQL 获取 Yoast 数据吗? 查看我的其他插件
邮件图标由 Good Ware 提供