定制 svenbw/kohana-email 二次开发

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

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

svenbw/kohana-email

Composer 安装命令:

composer require svenbw/kohana-email

包简介

Email module for Koseven

README 文档

README

Kohana 3.3 and Koseven compatible email module using SwiftMailer or PHPMailer.

How to install

Direct download method

  1. Download to modules directory.
  2. Fetch dependencies:
composer install
  1. Include it in APPPATH/bootstrap.php modules list:
Kohana::modules(array(
	...
	'email' => MODPATH.'email',
	...
));

Composer module method

  1. Include with composer:
composer require svenbw/kohana-email:dev-master
  1. Enable vendor autoload in APPPATH/bootstrap.php if not already:
require DOCROOT.'/vendor/autoload.php';
  1. In the same file include it in your modules list:
Kohana::modules(array(
	...
	'email' => DOCROOT.'/vendor/svenbw/kohana-email',
	...
));

Usage

Send a message to a recipient

$mailer = Email::connect();
$mailer->send(
    array('to-recipient@example.com', 'To recipient'),
    array('the-sender@example.com', 'The sender'),
    'Test-email',
    '<i>Test email</i>',
    TRUE);

Advanced usage

It is possible to create a message with chaining calls.

$mailer = Email::factory();
$mailer
  ->to('to-recipient@example.com', 'To recipient')
  ->from('the-sender@example.com', 'The sender')
  ->subject('Test-email')
  ->html('<i>Test email body</i>')
  ->send();

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-03