Php Amazon SES通过CRONJOB发送邮件获取错误

Php Amazon SES通过CRONJOB发送邮件获取错误,php,email,amazon-web-services,cron,amazon-ses,Php,Email,Amazon Web Services,Cron,Amazon Ses,我正在尝试使用CronJob通过AmazonSES向我的站点用户发送时事通讯/警报 我使用以下php脚本通过SES完成交付 [http://sourceforge.net/projects/php-ses/?source=navbar][1] include("ses.php"); $ses = new SimpleEmailService('id', 'key'); $m = new SimpleEmailServiceMessage(); $body="Test" $m->addTo

我正在尝试使用CronJob通过AmazonSES向我的站点用户发送时事通讯/警报

我使用以下php脚本通过SES完成交付

[http://sourceforge.net/projects/php-ses/?source=navbar][1]

include("ses.php");
$ses = new SimpleEmailService('id', 'key');
$m = new SimpleEmailServiceMessage();
$body="Test"
$m->addTo($mailId);
$m->setFrom('from@mail.com');
$m->addReplyTo('from@mail.com');
$m->setSubject('Reminder from Site.com');
$m->setSubjectCharset('ISO-8859-1');
$m->setMessageCharset('ISO-8859-1');
$m->setMessageFromString('text body',$body);
$ses->sendEmail($m);
但是当我通过浏览器访问这个文件(mailsend.php)时,我收到的电子邮件非常好。但是当使用由CronJob触发的函数时,我得到以下错误:

[08-Jul-2013 11:10:11 America/New_York]PHP警告:
SimpleEmailService::sendEmail():77设置证书验证位置时出错:
CAfile:/etc/pki/tls/certs/ca bundle.crt
CApath:无
在第356行的/home/site/public_html/files/login/ses.php中

关于问题可能在哪里的想法?

添加代码

$ses->enableVerifyPeer(false);
之后

$ses = new SimpleEmailService('id', 'key');

cron作为命令行PHP运行,它有一个不同的.ini文件和通常不同的设置。比较
php-i
(命令行)`和
phpinfo()。我们可以使用cPanel访问进行检查吗?正如Marc B指出的,cron作业的总体环境(包括使用的PHP版本)可能与在web服务器上运行并通过浏览器访问它有很大的不同。在cron/命令行下运行时,似乎存在某种身份验证(“CA”)问题。你可能需要和你的主人讨论这个问题。