PHP code example of revenuewire / email-client
1. Go to this page and download the library: Download revenuewire/email-client 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/ */
revenuewire / email-client example snippets
\RW\Email\Client::init(["region" => "[YOUR_REGION]", "url" => "[YOUR_QUEUE]"]);
$templateId = "59d2be5f18c13";
$from = ["name" => "Scott", "emailAddress" => "[email protected]"];
$to = [["name" => "Scott", "emailAddress" => "[email protected]"]];
$data = ["name" => "Scott", "message" => "可以吧 8"];
$result = \RW\Email\Client::directSend($templateId, $from, $to, $data);