我正在使用 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
我做错了什么?