PHP code example of zjango / sendcloud

1. Go to this page and download the library: Download zjango/sendcloud library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

zjango / sendcloud example snippets


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

Sendcloud::send('[email protected]','来自SendCloud的第一封邮件!',(string)(View::make('test')));

"zjango/sendcloud":"dev-master"

'Zjango\Sendcloud\SendcloudServiceProvider',

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

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

Sendcloud::send('[email protected]','来自SendCloud的第一封邮件!',(string)(View::make('test')));