发送带附件的电子邮件,而不保存到硬盘之前

时间:2021-07-12 16:50:46

is it possible to send an email with an image attachement in a "text" format? (like in a ByteArray)

是否可以以“文本”格式发送带有图像附件的电子邮件? (比如在ByteArray中)

I'ld like to encode an image into an ByteArray (Flash AS3 - PNGencoder) and send it then via PHP to Gmail and others without saving the image to a hard drive before.

我想将图像编码为ByteArray(Flash AS3 - PNGencoder),然后通过PHP将其发送到Gmail和其他人,而不将图像保存到硬盘驱动器之前。

I'm totally researching on this so any information is welcome!

我正在研究这个,所以欢迎任何信息!

Thanks Bob

谢谢鲍勃

1 个解决方案

#1


0  

Yes, with SwiftMailer this is how you do it (or for inline images).

是的,使用SwiftMailer,你就是这样做的(或内嵌图像)。

You still have to encode your PNG data, like this.

您仍然需要对PNG数据进行编码,如下所示。

#1


0  

Yes, with SwiftMailer this is how you do it (or for inline images).

是的,使用SwiftMailer,你就是这样做的(或内嵌图像)。

You still have to encode your PNG data, like this.

您仍然需要对PNG数据进行编码,如下所示。