title: Cakephp Sendgrid not attaching attachments
body: <p>Here is the code I'm using in <code>cakephp</code> function for <code>mailgun</code>.</p>
  
  <pre><code> function sendemail($to,$subject,$template_name,$variables){
                  $this-&gt;autoRender=false;
                  App::uses('CakeEmail', 'Network/Email');
                  $Email =new CakeEmail('mailgun');
                  $Email-&gt;from(array($from =&gt; $from_name));
                  $Email-&gt;to($to);
                  $Email-&gt;subject($subject);
                  $Email-&gt;attachments(array(
                                  'file.csv' =&gt; array(
                                      'file' =&gt; WWW_ROOT . 'csv' . DS . 'data_28122018_2211.csv',
                                      'mimetype' =&gt; 'text/csv',
                                      'contentId' =&gt; 'my-unique-id'
                                  )
                              ));
                  $Email-&gt;template($template_name,null);
                  $Email-&gt;emailFormat('html');
                  $Email-&gt;viewVars($variables);
                  $Email-&gt;send();
              }
  </code></pre>
  
  <p>And getting response of the attachment as below, But no attachment attached in mail.<br>
  Please help.</p>
  
  <blockquote>
    <p>--rel-732f894bea31c14ce42d0ab7d93adc77 Content-Type: text/csv Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: inline; filename="file.csv" IklEIiwiU3RhdHVzIiwiQ2FsbFN0YXR1cyIsIlJlc3BvbnNlIiwiVXJsIiwiU291cmNlIiwiV2lk Z2V0IiwiTGl2ZSBPciBTY2hlZHVsZWQiLCJDcmVkaXRzIFVzZWQiLCJMZWFkIiwiQWdlbnQiLCJE ZXBhcnRtZW50IiwiRHluYW1pYyBOdW1iZXIiLCJIb3VyIiwiTWludXRlIiwiU2Vjb25kIiwiRHVy YXRpb24iLCJEYXRlIiwiVGltZSIsIlNjaGVkdWxlZCBEYXRlIiwiU2NoZWR1bGVkIFRpbWUiLCJS ZWNvcmQiLCJJUCBBZGRyZXNzIiwiR0EgQ2xpZW50IElEIiwiQnJvd3NlciIsIkRldmljZSIsIkxv Y2F0aW9uIiwiQ291bnRyeSIsIlZpc2l0IE9uIiwiQWQiCiIjNzE5IiwiQ29ubmVjdGVkIiwiY29t cGxldGVkIiwiMTRzZWMiLCIiLCJEaXJlY3QiLCIiLCJMaXZlIiwiMiIsIis5MTc4Mzc1NzU0MjQi LCJWaW5heSBLdW1hciIsIiIsIiIsIiIsIiIsIjE0cyIsIjE0cyIsIjI3LTEyLTIwMTgiLCIwNzoy MTowOCIsIiIsIiIsIiIsIiIsIiIsIiIsIiIsIiIsIiIsIjI3IERlYyAyMDE4IDA3OjIxIHBtIiwi Igo= --rel-732f894bea31c14ce42d0ab7d93adc77-- --732f894bea31c14ce42d0ab7d93adc77-- )</p>
  </blockquote>