add-wpgraphql-send-mail
Last commit date
CHANGELOG.md
5 years ago
LICENSE
5 years ago
README.md
3 weeks ago
banner.png
5 years ago
composer.json
5 years ago
readme.txt
2 weeks ago
wp-graphql-send-mail.php
2 weeks ago
readme.txt
39 lines
| 1 | === Add WPGraphql Send Mail === |
| 2 | |
| 3 | Contributors: ash_hitch |
| 4 | Tags: Mail, WPGraphQL, GraphQL, Headless WordPress, JAMStack |
| 5 | Requires at least: 5.0 |
| 6 | Tested up to: 6.9 |
| 7 | Requires PHP: 7.0 |
| 8 | Stable tag: 1.6.2 |
| 9 | License: GPLv2 or later |
| 10 | License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 11 | |
| 12 | This plugin enables to send email via WPGraphQL. |
| 13 | |
| 14 | == Installation == |
| 15 | |
| 16 | 1. Install & activate [WPGraphQL](https://www.wpgraphql.com/) |
| 17 | 2. Install & activate this plugin to the `/wp-content/plugins/` directory |
| 18 | |
| 19 | |
| 20 | == Usage == |
| 21 | |
| 22 | ``` |
| 23 | mutation SEND_EMAIL { |
| 24 | sendEmail( |
| 25 | input: { |
| 26 | to: "test@test.com" |
| 27 | from: "test@test.com" |
| 28 | subject: "test email" |
| 29 | body: "test email" |
| 30 | clientMutationId: "test" |
| 31 | } |
| 32 | ) { |
| 33 | origin |
| 34 | sent |
| 35 | message |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | ``` |