简体   繁体   中英

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. 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).

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. You might want to check it out. https://github.com/Bogardo/Mailgun

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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