I am facing issue when mail having attachment sent using mailgun. If anyone has done this thing please reply. This is my code...
$mg_api = \'key-3ax6xnjp29jd
You need to change the last parameter in the following way:
attachment[1]' => '@aaa.rar
We have some samples in our documentation for this use case. Just click PHP in the top bar to switch the language. http://documentation.mailgun.net/user_manual.html#examples-sending-messages-via-http
Please don't hesitate to send us an email with any questions to support@mailgunhq.com. We are always happy to help.