承接 digitaledgeit/zf2-mail-module 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

digitaledgeit/zf2-mail-module

Composer 安装命令:

composer require digitaledgeit/zf2-mail-module

包简介

README 文档

README

A module simplifying use of ZF2 Mail.

Installation

Add the module to your composer.json file and run composer install:

"digitaledgeit/zf2-mail-module": "dev-master"

Configuration

Add the module to the modules key in your config/application.config.php file:

'modules' => [
	'DeitMailModule',
],

Add the configuration to your local.php and module.config.php:

'deit_mail' => [

	//an array containing type and options keys or a string containing a service name
	'transport' => [
		'type'      => '',              //null, file, sendmail or smtp
		'options'   => [                //see the transport options for selected type at http://framework.zend.com/manual/2.1/en/modules/zend.mail.introduction.html
		],
	],

	'renderer'  => 'ViewRenderer'        //a string containing a service name
],

Sending mail

//get the service
$service = $serviceManager->get('deit_mail_service');

//send a message containing plain text and HTML versions
$service->sendMixedMessage(
	[
		'to'            => 'fred@example.com',
		'from'          => 'wilma@example.com',
		'subject'       => 'A test message from my app',
		'attachments'   => [
            [
                'type'      => 'text/html',
                'name'      => 'test1.html',
                'content'   => '<html><head><title>Test HTML Page</title></head><body><h1>Test HTML Page</h1></body></html>'
            ],
            [
                'type'      => 'text/html',
                'name'      => 'test2.html',
                'content'   => './path/to/the-file.html'
            ]
        ]
	],
	[
		'text/plain'    => 'email/hello-text',
		'text/html'     => 'email/hello-html'
	],
	[
		'name' => 'World!'
	]
);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-03-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固