定制 rsthn/rose-ext-wind-sendgrid 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rsthn/rose-ext-wind-sendgrid

Composer 安装命令:

composer require rsthn/rose-ext-wind-sendgrid

包简介

SendGrid Adapter for Wind

README 文档

README

This extension adds expression functions to Wind to send emails using SendGrid.

NOTE: The extension detects the presence of Wind, when not installed, this extension will simply not be loaded.

Installation

composer require rsthn/rose-ext-wind-sendgrid

Configuration Section: Mail

Field Type Description Default
sendgrid string SendGrid API Key. Required
from string Email address of the sender. Required
fromName string Name of the sender. Optional

Expression Functions

mail::send name:string value:string ...

sendgrid::send name:string value:string ...

Sends an email and returns boolean (true) if successfully sent. Error messages are written to the system log. Accepts one or more name:value pairs. Currently supported:

Name Type Description
RCPT string Email address of the recipient.
RCPT array Email addresses of the recipients.
FROM string Email of the sender.
FROM-NAME string Name of the sender.
SUBJECT string Subject of the message.
BODY string HTML contents of the message.
ATTACHMENT string Adds the specified file (path) as an attachment.
ATTACHMENT map { name, data } Adds an attachment from a given data string.
ATTACHMENT map { name, path } Adds an attachment from a given path.
ATTACHMENT array Adds one or more attachments (each of which can be any of the previous forms).

Example:

(mail::send
	RCPT 'example@host.com'
	SUBJECT 'This is a test.'
	BODY '<b>Thanks for reading this email.</b>'
)

统计信息

  • 总下载量: 45
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2020-10-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固