revenuewire/email-client

v1.0.2 2017-10-08 03:13 UTC

This package is auto-updated.

Last update: 2024-11-12 06:57:31 UTC


README

composer require revenuewire/email-client

Send Direct

\RW\Email\Client::init(["region" => "[YOUR_REGION]", "url" => "[YOUR_QUEUE]"]);
$templateId = "59d2be5f18c13";
$from = ["name" => "Scott", "emailAddress" => "noreply@safecart.com"];
$to = [["name" => "Scott", "emailAddress" => "swang@revenuewire.com"]];
$data = ["name" => "Scott", "message" => "可以吧 8"];
$result = \RW\Email\Client::directSend($templateId, $from, $to, $data);