如何通过PHP发送带图形的电子邮件 [英] how to send email with graphic via php

查看:136
本文介绍了如何通过PHP发送带图形的电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想发送包含图形元素的HTML电子邮件。我不知道将这个电子邮件附加到这封电子邮件中。

I would like to send HTML email with graphic elements included. I have no idea to attach garaphics to this email.

推荐答案

你可能不想用手做内联附件,它更容易,更不容易使用库,例如​​ PHPMailer

它可以附加内联图像,或者如果给它一些HTML代码,它将自己附加图像,并修改代码以显示它们。

You probably don't want to do an inline attachment by hand, it's far easier, and less error prone to use a library, like PHPMailer.
It can attach the inline images, or if you give it some HTML code, it will attach the images by itself and modify the code to display them.

这篇关于如何通过PHP发送带图形的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆