client = Factory::createSes(); } public function send($to, $subject, $text, $file) { if (!empty($file)) { return false; } return $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 ]) !== false; } }