1. Go to this page and download the library: Download bcismariu/greenarrow-php 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/ */
bcismariu / greenarrow-php example snippets
use Bcismariu\GreenArrow\GreenArrow;
use GuzzleHttp\Client;
use Http\Adapter\Guzzle6\Client as GuzzleAdapter;
$mailer = new GreenArrow(new GuzzleAdapter(new Client()), [
'username' => 'username',
'password' => 'password',
]);
$mailer->send([
'message' => [
'to' => [[
'name' => 'John Smith',
'email' => '[email protected]'
]],
'from_name' => 'Jane Doe',
'from_email' => '[email protected]',
'subject' => 'A simple subject',
'html' => '<h1>A simple html body</h1>',
],
]);
json
{
"cismariu/greenarrow-php": "0.*"
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.