简体   繁体   English

如何使用Laravel使用Mailgun将图像嵌入电子邮件中?

[英]How to embed images in email with Mailgun using Laravel?

I'm working on a site with the Laravel 4 framework, and I'm attempting to send email batches with the Mailgun bundle by vtalbot. 我正在使用Laravel 4框架的网站上工作,并且尝试通过vtalbot发送带有Mailgun捆绑包的电子邮件批。 I need to embed images in the email since we don't have the storage space for the millions of images required. 我需要在电子邮件中嵌入图片,因为我们没有足够的存储空间来存储所需的数百万张图片。 I know that Mail has a method for this, but since Mailgun is the required mail service, I'm not sure how this can be used (if it even CAN be used). 我知道Mail有解决此问题的方法,但是由于Mailgun是必需的邮件服务,因此我不确定该如何使用(即使可以使用)。

EDIT: Well, turns out Mr. Talbot already thought or this... He provides functionality for the Mailgun "inline" parameter that allows for inline attachments. 编辑:好吧,原来Talbot先生已经想到了或者这...他为Mailgun“内联”参数提供了功能,该参数允许内联附件。 I always find the answer right after asking the question... 我总是在问了问题之后才找到答案...

I recently created a Laravel 4 package for Mailgun. 我最近为Mailgun创建了Laravel 4软件包。 You might want to check it out. 您可能需要检查一下。 https://github.com/Bogardo/Mailgun https://github.com/Bogardo/Mailgun

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM