ashhitch/wp-graphql-send-mail

Send Emails via with WPGraphQL

Installs: 2 348

Dependents: 0

Suggesters: 0

Security: 0

Stars: 21

Watchers: 3

Forks: 4

Open Issues: 6

Type:wordpress-plugin

v1.2.0 2021-01-27 08:14 UTC

This package is auto-updated.

Last update: 2024-03-27 15:32:48 UTC


README

WPGraphQl Yoast SEO Plugin

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

Open an issue

Other WpGraphQl Plugins

Want to get Yoast data via WPGraphQL? Checkout my other plugin

Mail Icon by Good Ware