国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

云郵件

免費
類型 應(yīng)用插件
版本 1.0.1
版本更新時間 2023-03-04
大小 18.17 KB
開發(fā)商
官方
評分

詳細介紹

郵件應(yīng)用插件,支持在webman-admin中設(shè)置賬號信息。用于向用戶發(fā)送郵件,例如產(chǎn)品推廣、郵箱驗證等。

提供的接口

快速發(fā)送

use plugin\email\api\Email;
Email::send($from, $to, $subject, $content);

按照模版發(fā)送

提示
v1.0.1新增

use plugin\email\api\Email;
Email::sendByTemplate($to, $templateName, array $templateData = [])

模版可在郵件后臺添加

自定義發(fā)送

use plugin\email\api\Email;
$mailer = Email::getMailer();
$mailer->setFrom('from@example.com', 'Mailer');
$mailer->addAddress('joe@example.net', 'Joe User');     // 增加一個接受者
$mailer->addAddress('ellen@example.com');                 // 名字是可選的
$mailer->addReplyTo('info@example.com', 'Information');
$mailer->addCC('cc@example.com');
$mailer->addBCC('bcc@example.com');

// 附件
$mailer->addAttachment('/var/tmp/file.tar.gz');             // 添加附件
$mailer->addAttachment('/tmp/image.jpg', 'new.jpg');    // 附件名是可選的

// 內(nèi)容
$mailer->isHTML(true);                                                   // 如果內(nèi)容是html
$mailer->Subject = 'Here is the subject';
$mailer->Body    = 'This is the HTML message body <b>in bold!</b>';
$mailer->AltBody = 'This is the body in plain text for non-HTML mail clients';

$mailer->send();

安裝使用

請在webman-admin的插件市場安裝

注意
此插件依賴 phpmailer/phpmailer
執(zhí)行命令 composer require phpmailer/phpmailer安裝(需要restart重啟)

版本歷史記錄
1.0.1
2023-03-04
增加模版功能
1.0.0
2023-02-28
支持webman-admin后臺設(shè)置賬戶信息
評分及評論
5 滿分5分
德瑪西亞 2025-01-13
問下怎么判斷發(fā)送失敗和成功呢?
zhezhebie 2024-01-08
感謝大佬!請問這個里面可以用復雜模板嗎?例如,我想發(fā)送股票信息,需要用到if和遍歷,還是說需要自己寫,有參照的嗎?謝謝
tl54577 2023-10-21
二進制打包以后,使用不了,提示 SMTP ERROR: Failed to connect to server: (0) 2023-10-21 14:36:37 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
mincon 2023-08-27
sendByTemplate 沒有發(fā)送人別名 Email::send(接收配置信息) $config = static::getConfig(); static::send($config, $to, $subject, $content); call_user_func_array([$mailer, 'setFrom'], [$from['Username'], $from['From']]);
inmers 2023-03-23
請問有碰到中文亂碼問題的嗎?
OhMangoCat 2023-03-21
好用
??