client = Factory::createSes(); } public function getSender() { return Config::get('aws_ses_sender'); } public function send($to, $subject, $text) { $this->client->sendEmail([ 'Destination' => [ // REQUIRED 'ToAddresses' => [$to], ], 'Message' => [ // REQUIRED 'Body' => [ // REQUIRED 'Html' => [ 'Data' => $text, // REQUIRED ], 'Text' => [ 'Data' => $text, // REQUIRED ], ], 'Subject' => [ // REQUIRED 'Data' => $subject, // REQUIRED ], ], 'Source' => $this->getSender(), // REQUIRED ]); } }