【问题标题】:How to send image using Mandrill but image name should not rename?如何使用 Mandrill 发送图像但图像名称不应重命名?
【发布时间】:2016-01-19 05:42:31
【问题描述】:

mandrill api 中的图像文件附件工作正常。但在这里,

'type' => 'image/jpeg',
'name' => "",     // Here I didn't  know what I am use 
'content' => base64_encode(file_get_contents($img))

【问题讨论】:

    标签: php phpmailer mandrill


    【解决方案1】:

    你可以做类似的事情

    'name' => basename($img)
    

    如果您不想重命名图像。

    希望这会有所帮助,

    【讨论】:

      猜你喜欢
      • 2015-03-17
      • 2014-03-23
      • 1970-01-01
      • 2014-07-26
      • 2014-06-22
      • 2015-12-03
      • 1970-01-01
      • 2012-02-07
      • 1970-01-01
      相关资源
      最近更新 更多