ashhitch/wp-graphql-send-mail

通过 WPGraphQL 发送电子邮件

安装次数: 2,371

依赖项: 0

建议者: 0

安全性: 0

星标: 21

关注者: 3

分支: 4

开放问题: 7

类型:wordpress-plugin

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

This package is auto-updated.

Last update: 2024-08-27 16:31:36 UTC


README

WPGraphQl Yoast SEO Plugin

关于传统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 提供