请帮我:
邮件无法在我的带有 zend 的亚马逊服务器上运行。
我用过 :
Git 中心链接此库以获取邮件
我已经设置了 AMAZON_AWS_ACCESS_KEY和AMAZON_AWS_PRIVATE_KEY但它不起作用
请给我任何关于这个问题的想法
这是我的行动
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');
}
当我运行此操作时,我使用 AmazonSES.php 类进行电子邮件设置,然后打印“成功”,但我的邮件收件箱中没有收到任何邮件并且代码中出现错误