自亚马逊SES - 删除amazonses.com [英] customize amazons SES - remove amazonses.com
问题描述
我终于得到了SES的工作,但我现在面临着另一个问题
电子邮件发送,从和邮寄按这样
我场在叶 amazonses.com
目前沙箱访问
I finally got SES to work, but now im confronted with another problem
The email sent leaves amazonses.com
in the from and mailed-by fields like this
I am currently on sandbox access
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个行业,并取代邮件域字段与我公司的电子邮件地址?
我的继承人的PHP
question: how can i remove amazonses.com
from these 2 fileds and replace the 'mailed-by' field with my companies email address?
heres my 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" );
解决:只要发送电子邮件
距离验证域, amazonses.com
没有出现
SOLVED: as long as the sent mail
is from the verified domain, amazonses.com
does not appear
推荐答案
由于<一href="http://aws.amazon.com/about-aws/whats-new/2012/07/17/easily-dkim-sign-your-emails-with-amazon-ses/">july 2012 的很容易通过SES自己签署发出的邮件。
Since july 2012 it is easy to sign outgoing mail via SES itself.
说明是简单易懂。
PS:抱歉nekroposting,但这个问题是一个弹出当我试图做同样的事情
p.s.: sorry for nekroposting, but this question is the one that popped up when I tried to do the same thing.
这篇关于自亚马逊SES - 删除amazonses.com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!