[Tue Jun 16 15:42:01.069155 2015] [:error] [pid 4628] [client 192.168.11.10:52122] PHP Catchable fatal error: Argument 1 passed to AmazonSES::__construct() must be of the type array, string given, called in app/library/Mail/Mail.php on line 34 and defined in vendor/amazonwebservices/aws-sdk-for-php/services/ses.class.php on line 71, my function is given below
public function amazonSESSend($to, $subject, $name, $params)
{
$this->amazonSes = new \AmazonSES(
$this->config->amazon->AWSAccessKeyId,
$this->config->amazon->AWSSecretKey
);
$response =$this->amazonSes ->send_raw_email(array(
'Data' => base64_encode($params),
), array(
'Source' => $to,
'Destinations' => array(
$to,
),
));
// Success?
var_dump($response->isOK());
}