定制 cafewebcode/webcodemail 二次开发

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

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

cafewebcode/webcodemail

Composer 安装命令:

composer require cafewebcode/webcodemail

包简介

A simple component for sending emails through PHPMailler CafeWebCodeEmail

README 文档

README

Maintainer Source Code PHP from Packagist Software License Build Quality Score Total Downloads

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

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-21