【发布时间】: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))
【问题讨论】:
mandrill api 中的图像文件附件工作正常。但在这里,
'type' => 'image/jpeg',
'name' => "", // Here I didn't know what I am use
'content' => base64_encode(file_get_contents($img))
【问题讨论】:
你可以做类似的事情
'name' => basename($img)
如果您不想重命名图像。
希望这会有所帮助,
【讨论】: