PHP code example of cherrytools / directmail
1. Go to this page and download the library: Download cherrytools/directmail 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/ */
cherrytools / directmail example snippets
bash
Mail::raw('Hello World!', function ($message) {
$message->from('email', 'alias');
// 单个收件人
$message->to('email', 'alias');
// 多个收件人
$message->to(['email'=>'alias', 'email'=>'alias']);
$message->subject('Hello World');
});