ashhitch/wp-graphql-send-mail
最新稳定版本:v1.2.0
Composer 安装命令:
composer require ashhitch/wp-graphql-send-mail
包简介
Send Emails via with WPGraphQL
README 文档
README
One of the simple things about a traditional WordPress sites is sending emails, this plugin makes it easy to do this via a simple mutation when you are using WPGraphQL.
Features
- Set list of allowed origins in admin
- Set CC address in admin
- Set default From address in admin
Composer
composer require ashhitch/wp-graphql-send-mail
Usage
mutation SEND_EMAIL {
sendEmail(
input: {
to: "test@test.com"
from: "test@test.com"
subject: "test email"
body: "test email"
clientMutationId: "test"
}
) {
origin
sent
message
}
}
To try stop unauthorised emails you can set a list of domains that can send emails through the mutation.
These are set under Settings > WPGraphQL Mail from your WordPress Admin
Support
Other WpGraphQl Plugins
Want to get Yoast data via WPGraphQL? Checkout my other plugin
Mail Icon by Good Ware
Find this useful?
统计信息
- 总下载量: 2.73k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 24
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2020-05-04
