title: AWS SES Guzzle Error when sending email
body: <p>I have set up AWS Ses service using PHP SDK:</p>
  
  <pre><code>$this-&gt;client = SesClient::factory([
      'key' =&gt; $params['key'],
      'secretKey' =&gt; $params['secret_key'],
      'region' =&gt; 'eu-west-1',
      'base_url' =&gt; 'https://email-smtp.eu-west-1.amazonaws.com',
  ]);
  
  $this-&gt;client-&gt;sendEmail($this-&gt;params());
  
  public function params() {
      array(
          'Source' =&gt; 'verified@gmail.com',
          'Destination' =&gt; array(
              'ToAddresses' =&gt; array('receiver@yahoo.com')
          ),
          'Message' =&gt; array(
              'Subject' =&gt; array(
                  'Data' =&gt; 'SES Testing',
                  'Charset' =&gt; 'UTF-8',
              ),
              // Body is required
              'Body' =&gt; array(
                  'Text' =&gt; array(
                      'Data' =&gt; 'My plain text email',
                      'Charset' =&gt; 'UTF-8',
                  ),
                  'Html' =&gt; array(
                      'Data' =&gt; '&lt;b&gt;My HTML Email&lt;/b&gt;',
                      'Charset' =&gt; 'UTF-8',
                  ),
              ),
          ),
          'ReplyToAddresses' =&gt; array( 'replyTo@email.com' ),
          'ReturnPath' =&gt; 'bounce@email.com'
      );
  }
  </code></pre>
  
  <p>After trying to send email, I receive this error message:</p>
  
  <pre><code>exception 'Guzzle\Http\Exception\CurlException' with message 
  '[curl] 23: Failed writing body (0 != 86) [url] https://email-smtp.eu-west-1.amazonaws.com/' 
  in C:\xampp\htdocs\myProject\protected\lib\vendor\guzzle\guzzle\src\Guzzle\Http\Curl\CurlMulti.php:338
  </code></pre>
  
  <p>Anyone know how to fix that error?</p>
  
  <p>cUrl has support for SMTP, but <code>smtp://email-smtp.eu-west-1.amazonaws.com</code> throws error <code>[curl] 1: Protocol smtp not supported or disabled in libcurl [url] smtp://email-smtp.eu-west-1.amazonaws.com/</code>
  <img src="https://i.stack.imgur.com/r4VYl.png" alt="cUrl"></p>