Skip to content

Instantly share code, notes, and snippets.

@jeremeamia
Created September 22, 2014 18:27
Show Gist options
  • Select an option

  • Save jeremeamia/fee6728a6ff48341559e to your computer and use it in GitHub Desktop.

Select an option

Save jeremeamia/fee6728a6ff48341559e to your computer and use it in GitHub Desktop.
SES sendRaw API usage in PHP
<?php
$sesClient->sendRaw(array(
'Source' => 'your@email.com',
'Destinations' => array('their@email.com', 'their-other@email.com'),
'RawMessage' => array('Data' => 'MESSAGE')
));
// MESSAGE is the entire raw message, headers and all.
// See http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-raw.html
@catharsisjelly
Copy link
Copy Markdown

Thanks for the example, if Source and Destinations are not required, what is the benefit of supplying them when you have to include both in the RawMessage anyway?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment