customize amazons SES - remove amazonses.com

amazon-ec2, amazon-ses, amazon-web-services

Solution

Since july 2012 it is easy to sign outgoing mail via SES itself.

Instructions are easy and straightforward.

p.s.: sorry for nekroposting, but this question is the one that popped up when I tried to do the same thing.

Problem

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 ``` 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" ); ```

Original source