以 html 形式发送电子邮件,并嵌入图像作为背景
我正在尝试以 html 形式发送电子邮件,其中嵌入图像(不是附件)并作为背景。 我试图使用 Xpert Mailer,但他们的文档信息量很小,所以我没有成功。
我还尝试使用 Swiftmailer,通过 Swiftmailer,我成功发送带有嵌入图像但不作为背景的电子邮件。
有人知道如何发送嵌入图像作为背景/有好的 PHP 电子邮件发送器吗?
谢谢!
I am trying to send email as html with embedded images (not attachment) and as background.
I was trying to use Xpert Mailer but their 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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不知道您正在使用的应用程序,但这可以通过以 base64 格式嵌入图像来完成,如下所示:
快速谷歌搜索显示以下转换器站点:点击
Don't know about the apps you're using but this can be done by embedding the images in base64 format, looks like this:
Quick google search shows the following converter site: click
我找到了答案。问题不在于我的 html 或我如何嵌入图像。问题是 gmail 不支持 css 属性背景/背景图像,因此它对我不起作用。
我不得不使用
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