定制 xinix-technology/bono-mail 二次开发

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

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

xinix-technology/bono-mail

Composer 安装命令:

composer require xinix-technology/bono-mail

包简介

Mailer for bono

README 文档

README

Mailer for Bono

Its simply thin wrapper to SwiftMailer now.

With bono-mail you can utilize bono configuration to bootstrap your mailer.

Installlation

composer require xinix-technology/bono-mail

Configuration

Edit config/config.php

return array(
    'bono.providers' => array(
        // ...
        '\\BonoMail\\Provider\\MailProvider' => array(
            'defaultMessage' => array(
                'from' => array('john@doe.com' => 'John Doe'),
            ),
            'transports' => array(
                'smtp' => array(
                    'driver' => 'smtp',
                    'host' => 'localhost',
                    'port' => 25,
                ),
            ),
        ),
        // ...
    ),
);

Howto Use

$result = \BonoMail\Mail::factory('Some subject for you')
    ->body('test', array())
    ->to(array('jane@doe.com'))
    ->send();

Above code will send mail to jane@doe.com from default from (from configuration) with body from emails/test template.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-06-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固