SES与代码在Magento中的集成
请帮助我将ses集成到magento中,因为我尝试了以下发送电子邮件的方法。但我的收件箱中没有收到任何电子邮件或垃圾邮件。sendEmail()没有发送电子邮件。我尝试了localhost和服务器上的ses,但两种方法都没有发送电子邮件SES与代码在Magento中的集成,magento,integration,amazon-ses,Magento,Integration,Amazon Ses,请帮助我将ses集成到magento中,因为我尝试了以下发送电子邮件的方法。但我的收件箱中没有收到任何电子邮件或垃圾邮件。sendEmail()没有发送电子邮件。我尝试了localhost和服务器上的ses,但两种方法都没有发送电子邮件 $config = array('auth' => 'login', 'username' => '***************', 'port'=>587, 'SMT
$config = array('auth' => 'login',
'username' => '***************',
'port'=>587,
'SMTP'=>true,// SMTP
'SMTPAuth' => true, // SMTP authentication
'Mailer' => "smtp",
'enable_starttls_auto' => true,
'host'=>"email-smtp.us-west-2.amazonaws.com",
'password' => '**************************');
ini_set('SMTP', Mage::getStoreConfig('system/smtp/host'));
ini_set('smtp_port', Mage::getStoreConfig('system/smtp/port'));
$ses = new SimpleEmailService($config);
$m = new SimpleEmailServiceMessage();
$m->addTo('xyz.test@gmail.com');
$m->setFrom('xyz.test@gmail.com');
$m->setSubject('You have got Email!');
$m->setMessageFromString('Your message');
if($ses->sendEmail($m)){
echo "done";die;
}
其中一次尝试给了我以下错误:-
stdClass对象([error]=>Array([curl]=>1[code]=>60[message]=>SSL证书问题:无法获取本地颁发者证书[resource]=>)