我正在使用Mailgun并希望将图片添加到我的新闻通讯中。现在我已经这样做了:
$mg->sendMessage($domain, array('from' => 'developer@mijnprojectgroep.eu',
'to' => 'developer@mijnprojectgroep.eu',
'subject' => 'Developers Mail Test MijnProjectgroep batch #1',
'text' => 'Hallo %recipient_fname%,
'html' => '<html>
<img style="display:block;" class="img1" src="cid:header-clip.png" width="600" height="64" />
</html>',
array('inline' => '@.././images/newsletter/header-clip.png'),
'o:tracking-opens' => 'yes'));
但是我收到了新闻通讯,却没有加载任何图片。带有上述脚本的文件位于:
根目录 --> /MailGun/
这些图片在此处:
根目录 --> /images/newsletter/
也尝试过:@../../images/newsletter/header-clip.png
文档在这里:
http://documentation.mailgun.com/user_manual.html?highlight=html#sending-via-api
我做错了什么?