cafewebcode/webcodemail
Composer 安装命令:
composer require cafewebcode/webcodemail
包简介
A simple component for sending emails through PHPMailler CafeWebCodeEmail
README 文档
README
Simple component to make PHPMailler easier to use
Simple component that uses the facade pattern to abstract PHPMailler functions for sending emails. A component to facilitate and speed up your development.
About CafeWebCodeEmail
CafeWebCodeEmail is a set of small and optimized PHP components for common tasks. Held by Cleyber F. Matos.
Documentation
<?php require __DIR__ . "/../src/config.php"; require __DIR__ . "/../vendor/phpmailer/phpmailer/src/PHPMailer.php"; require __DIR__ . "/../vendor/phpmailer/phpmailer/src/Exception.php"; require __DIR__ . "/../vendor/phpmailer/phpmailer/src/SMTP.php"; require __DIR__ . "/../src/Mail.php"; use Cafewebcode\Cafewebcodemail\Mail; $mail = new Mail(); $mail->bootstrap( "test submission " . time(), "<h1>Hello Word</h1><p>This is an email sending test</p>", "email@email.com.br", "recipient name" ); if ($mail->send("frommail@mail.com.br", "from name")) { echo "Sent with success"; } else { var_dump($mail->fail()); }
Sending attachments
<?php $mail = new Mail(); $mail->bootstrap( "test submission " . time(), "<h1>Hello Word</h1><p>This is an email sending test</p>", "email@email.com.br", "recipient name" ); $mail->attach("file path", "file Name"); $mail->attach("file path", "file Name"); $mail->send("frommail@mail.com.br", "from name");
Contributing
Please see CONTRIBUTING for details.
Support
Security: If you discover any security related issues, please email cleyber.fernandes@gmail.com instead of using the issue tracker.
Thank you
Credits
- Cleyber F. Matos (Developer)
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-08-21