kurtiz/email-man
最新稳定版本:0.0.1
Composer 安装命令:
composer require kurtiz/email-man
包简介
A fully featured PHP Email Library for sending emails especially via smtp
README 文档
README
A fully featured PHP Email Library for sending emails especially via smtp
Features
- Add multiple recipients
- Add multiple CC
- Add multiple BCC
- Add Reply To
- Add HTML Emails
- Add Raw Text Email
- Dump Errors
Sample Usage
<?php use EmailMan\EmailMan; include "EmailMan.php"; $email = new EmailMan(); // add recipients $email->addto("test1@email.com"); $email->addto("test2@email.com", "Test 2"); $email->addto("test3@email.com"); // add cc $email->addCC("testCC1@email.com"); $email->addCC("testCC2@email.com"); // add bcc $email->addBCC("testBCC@email.com"); // set sender email $email->setFrom("sender@email.com"); // set sender name $email->setFromName("Sender Name"); // set subject $email->setSubject("THIS IS THE SUBJECT OF THE EMAIL"); // set message $email->setMessage("This is just a test message"); // set reply to $email->setReplyTo("reply_to_address@email.com"); // prepare the headers $email->prepareHeaders(); // send the email $email->send(); // dump errors if there are any $errors = $email->dumpDebugger(); echo "<pre>"; var_dump($errors); echo "</pre>";
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-10-20