Created
September 22, 2014 18:27
-
-
Save jeremeamia/fee6728a6ff48341559e to your computer and use it in GitHub Desktop.
SES sendRaw API usage in PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the example, if
SourceandDestinationsare not required, what is the benefit of supplying them when you have to include both in theRawMessageanyway?