Mailgun Sent mail With attachment

后端 未结 8 1651
眼角桃花
眼角桃花 2020-12-01 15:03

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         


        
8条回答
  •  生来不讨喜
    2020-12-01 15:26

    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.

提交回复
热议问题