Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashhitch/wp-graphql-send-mail
Send emails via mutation using WpGraphQl
https://github.com/ashhitch/wp-graphql-send-mail
graphql hacktoberfest wordpress wordpress-plugin wpgraphql
Last synced: 7 days ago
JSON representation
Send emails via mutation using WpGraphQl
- Host: GitHub
- URL: https://github.com/ashhitch/wp-graphql-send-mail
- Owner: ashhitch
- License: gpl-3.0
- Created: 2020-05-04T18:22:35.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-13T07:43:05.000Z (over 1 year ago)
- Last Synced: 2024-10-07T01:03:49.873Z (about 1 month ago)
- Topics: graphql, hacktoberfest, wordpress, wordpress-plugin, wpgraphql
- Language: PHP
- Homepage:
- Size: 204 KB
- Stars: 21
- Watchers: 3
- Forks: 4
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-wordpress-gatsby - WPGraphQL Send Email - This FREE plugin from @Ash_Hitchcock allows you to send emails via a simple mutation. Includes the abilitty to restrict sending to trusted origins. (Plugins / WordPress)
README
# WPGraphQL Send Email Plugin
![WPGraphQl Yoast SEO Plugin](./banner.png)
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: "[email protected]"
from: "[email protected]"
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
[Open an issue](https://github.com/ashhitch/wp-graphql-send-mail/issues)
## Other WpGraphQl Plugins
Want to get Yoast data via WPGraphQL? [Checkout my other plugin](https://github.com/ashhitch/wp-graphql-yoast-seo)
Mail Icon by [Good Ware](https://www.flaticon.com/authors/good-ware)