I'm new in Amazon SES and I'm trying to send an email with this code:
<?php require_once 'aws/sdk.class.php'; $ses = new AmazonSES(); $to = array('ToAddress' => '[email protected]'); $content = array('Subject.Data' => 'Tema', 'Body.Text.Data' => 'hello'); $r = $ses->send_email("[email protected]", $to , $content); print_r($r); ?> In the output it says: Missing required header 'To', what am I doing wrong?
PHPcode, then check if$headers .= 'To:andmail($mail_to... etc.)exist.guessesto potentially solve your problem.