承接 zjango/sendcloud 相关项目开发

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

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

zjango/sendcloud

最新稳定版本:v5.4.0

Composer 安装命令:

composer require zjango/sendcloud

包简介

README 文档

README

#Use 发送文本

Sendcloud::send('test@test.com','来自SendCloud的第一封邮件!','你太棒了!你已成功的从SendCloud发送了一封测试邮件,接下来快登录前台去完善账户信息吧!');

发送视图

Sendcloud::send('test@test.com','来自SendCloud的第一封邮件!',(string)(View::make('test')));

#Installation

Require this package in your composer.json and update composer. This will download the package.

"zjango/sendcloud":"dev-master"

After updating composer, add the ServiceProvider to the providers array in app/config/app.php

'Zjango\Sendcloud\SendcloudServiceProvider',

You can use the facade for shorter code. Add this to your aliases:

'Sendcloud' 		=> 'Zjango\Sendcloud\Facades\SendcloudClass',

Add config

update file app/config/mail.php add config

	'sendcloud'=>array(	
		'api_user'=>'Sendcloud的api_user',		
		'api_key'=>'Sendcloud的api_key',
		'from_addr'=>'发信地址',
		'from_name'=>'服务',
	),

QA

Q:这个doSend($to,$subject,$content)中$content能否是一个view呢

A:需要(string)转换一下.另外邮件发送函数为send. 发送View视图实例为

Sendcloud::send('test@test.com','来自SendCloud的第一封邮件!',(string)(View::make('test')));

License

This package is licensed under LGPL. You are free to use it in personal and commercial projects. The code can be forked and modified, but the original copyright author should always be included!

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-02-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固