lastcaveman/sendcloud 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

lastcaveman/sendcloud

Composer 安装命令:

composer require lastcaveman/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.

"lastcaveman/sendcloud":"dev-master"

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

'Lastcaveman\Sendcloud\SendcloudServiceProvider',

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

'Sendcloud' 		=> 'Lastcaveman\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!

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2022-08-28