Using curl to send emails through Amazon SES
<p>Using <a href="https://coderwall.com/p/3vqf2g/send-emails-via-amazon-ses-with-bash-and-curl" rel="nofollow">this</a> link i tried to send emails to Amazon SES. But could not.
The error being:</p>

<pre><code>    &lt;ErrorResponse xmlns="http://ses.amazonaws.com/doc/2010-12-01/"&gt;   &lt;Error&gt;
        &lt;Type&gt;Sender&lt;/Type&gt;
        &lt;Code&gt;MessageRejected&lt;/Code&gt;
        &lt;Message&gt;Email address is not verified. The following identities failed the check in region US-EAST-1: noreply@myorg.com&lt;/Message&gt;   &lt;/Error&gt;
&lt;RequestId&gt;4242cec6-5002-11e6-95bf-b7dbdddce018&lt;/RequestId&gt; &lt;/ErrorResponse&gt;
</code></pre>

<p><strong>This seeming obvious</strong>, I contacted devops, but alas!! They said the email is indeed verified.
The I tried:</p>

<ul>
<li>With different endpoint</li>
<li>With different email(That was verified)</li>
</ul>

<p>But the same error repeats.</p>

<p>Amazon says use <a href="http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-smtp-client-command-line.html" rel="nofollow">this</a>, but i do not have the smtp user creds. 
Plus the question remains why the curl does not work. Can anyone help?</p>

<p><strong>EDIT</strong></p>

<p>For better readability adding curl :</p>

<blockquote>
  <p>curl -v -X POST -H "Date: $(date -R)" -H "X-Amzn-Authorization:
  AWS3-HTTPS AWSAccessKeyId=ORG_ACCESS_KEY, Algorithm=HmacSHA256,
  Signature=$(echo -n $(date -R) | openssl dgst -sha256 -hmac
  ORG_SECRET_KEY -binary | base64 -w 0)" --data-urlencode
  "Message.Body.Text.Data=Test Message" --data-urlencode
  "Destination.ToAddresses.member.1=my_email" --data-urlencode
  "Source=myorg_verified_email_id" --data-urlencode "Action=SendEmail"
  --data-urlencode "Message.Subject.Data=Test AWS Message" "<a href="https://email.us-west-2.amazonaws.com/" rel="nofollow">https://email.us-west-2.amazonaws.com/</a>"</p>
</blockquote>