定制 rsthn/rose-ext-phpmailer 二次开发

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

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

rsthn/rose-ext-phpmailer

最新稳定版本:2.0.0

Composer 安装命令:

composer require rsthn/rose-ext-phpmailer

包简介

PHPMailer Extension for Rose

README 文档

README

This extension adds expression functions to Rose to send emails using PHPMailer.

Installation

composer require rsthn/rose-ext-phpmailer

Configuration Section: Mail

Field Type Name Description
host string SMTP host name. Required
username string Username for the SMTP server. Required
password string Password for the SMTP server. Required
port int Port number to connect. Default is port 587.
secure boolean, string SMTP secure connection mode. Default is true.
Use explicit if port is 587, implicit otherwise.
Set to false to disable and to true to use automatic detection based on port number.
from string Email address of the sender. Optional
fromName string Name of the sender. Optional

Expression Functions

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

phpmailer:send name:string value:string ...

Accepts one or more name:value pairs, the name describes the field to set in the mail object of PHPMailer. 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>'
)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2025-01-20