我终于得到了SES的工作,但我现在有另一个问题面临
电子邮件发送叶子amazonses.com
在从和寄件人这样的领域
我目前在沙盒访问
from: name@myDomain.com via amazonses.com
to: john@aol.com
date: Sat, Jun 2, 2012 at 3:30 PM
subject: Subject message
mailed-by: amazonses.com
问题 :我如何删除amazonses.com
从这些2周的Fileds并更换“寄件人”字段与我的公司电子邮件地址?
我的继承人的PHP
function sendMail($to, $subject, $message, $from ) {
require_once('sdk-1.5.6.2/sdk.class.php');
$AWS_KEY = "********************";
$AWS_SECRET_KEY = "****************************************";
$amazonSes = new AmazonSES(array( "key" => $AWS_KEY, "secret" => $AWS_SECRET_KEY ));
$response = $amazonSes->send_email(
$from,
array('ToAddresses' => array($to)),
array(
'Subject.Data' => $subject,
'Body.Html.Data' => $message,
)
);
if (!$response->isOK()) {
return false;
}else {
return true;
}
return false;
}
sendMail('john@aol.com', "Body message", "Subject message", "name@myDomain.com" );
解决 :只要sent mail
是从验证域, amazonses.com
不会出现