Mail is not working on my AWS server with zend.
I have used:
GitHub link this library for mail
I have set AMAZON_AWS_ACCESS_KEY and AMAZON_AWS_PRIVATE_KEY but its not working
Please give me any idea for this problem
this is my action
public function testmailAction() {
echo 'Access '.AMAZON_AWS_ACCESS_KEY . "<br/>";
echo 'Private '.AMAZON_AWS_PRIVATE_KEY. "<br/>";
echo 'From '.AMAZON_SES_FROM_ADDRESS. "<br/>";
echo 'To '.AMAZON_SES_TO_ADDRESS. "<br/>";
//Load the required dependencies
require_once 'Zend/Mail.php';
require_once 'App/Mail/Transport/AmazonSES.php';
$mail = new Zend_Mail('utf-8');
$transport = new App_Mail_Transport_AmazonSES(
array(
'accessKey' => AMAZON_AWS_ACCESS_KEY,
'privateKey' => AMAZON_AWS_PRIVATE_KEY
)
);
$mail->setBodyText('Lorem Ipsum Dolo Sit Amet');
$mail->setBodyHtml('Lorem Ipsum Dolo <b>Sit Amet</b>');
$mail->setFrom(AMAZON_SES_FROM_ADDRESS, 'John Doe');
$mail->addTo(AMAZON_SES_TO_ADDRESS);
$mail->setSubject('Test email from Amazon SES without attachments');
$mail->send($transport);
die('success');
}
I have used AmazonSES.php class for email setting when I am runing this action then its print 'success' but I am not getting any mail in my mail inbox and error in code.