Skip to content

Is AddEmbeddedImage working under Sendy

edited January 2013 in Questions

Hello, I try to edit includes/create/test-send.php so it send an inline embedded image using this code :

        $html_text2 = str_replace('[footer]', '<p><img src=\"cid:footerimg\" /></p>', $html_text2);
        $mail->AddEmbeddedImage('footer.jpg', 'footerimg', 'footer.jpg');

Though it fails : I get no emails in my inbox.

When I comment the $mail->AddEmbeddedImage() call, I receive the email.
Of course, in that case, I don't get the embedded image.

What am I missing here ? Is this compatible with Sendy (problem of encoding?)

I hope you will have some clues !

Comments

  • Hi @mediana,

    To embed an image, just include an image HTML tag in your code:

    <img src="your_image.jpg" title=""/>

    Thanks.

    Ben

This discussion has been closed.