I'm working with mailgun and want to add images to my newsletters. Now I did this:
$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'));
But no images are loading while I receive the newsletter. The document with the script above is in:
Root --> /MailGun/
The images are in:
Root --> /images/newsletter/
Also tried: @../../images/newsletter/header-clip.png
The documentation is here:
http://documentation.mailgun.com/user_manual.html?highlight=html#sending-via-api
What did I do wrong?