rsthn/rose-ext-wind-phpmailer

PHPMailer Adapter for Wind

1.0.7 2021-10-02 08:51 UTC

This package is auto-updated.

Last update: 2024-10-30 01:31:57 UTC


README

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

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-phpmailer

Configuration Section: Mail

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:

Example:

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