开发者

Send email as html with embedded images as background

I am trying to send email as html with embedded images (not attachment) and as background. I was trying to use Xpert Mailer but t开发者_JS百科heir documantion has small amount of information so I didnt succeed.

I was also trying to use Swiftmailer, with Swiftmailer I succeed to send email with embedded images but not as background.

Anyone has any clue how to send embbed images as background / has good PHP Email Sender?

Thanks!


Don't know about the apps you're using but this can be done by embedding the images in base64 format, looks like this:

<img src="data:image/gif;base64,R0lGODlhUAABLABLAMOREBASE64HERE">

Quick google search shows the following converter site: click


I found the answer. the problem was not my html or how I embedded the image. tha problem was that gmail doesnt support css property background / background-image and therefore it didnt work for me.

I had to use

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜