LanX has asked for the wisdom of the Perl Monks concerning the following question:
For my current project I'm supposed to send HTML emails (sigh) with pictures (double-sigh) within a large company with a self made mailing module (triple-sigh)
Uploading the images to a webserver is no option since some of the recipients are outside the intranet.
At the moment we are using an self made mail module and producing multi-part emails where the images are inlined attachments referenced either by content-location or content-id .
see http://www.faqs.org/rfcs/rfc2557.html
Is there a generic module to do facilitate this?
I'd like to have a HTML template with placeholders for images which are automatically mapped to attachments to simplify the generation of those emails:
Something like <img src="{{ATTACH:path}}"> expanded to <img src='cid:3__=398519209581029819@sender@foo.org"> and the attachment with Content-Disposition: inline; and correct CID automatically appended to the mail.
--ibGD9CHXGX4XX Content-Type: application/octet-stream Content-Disposition: inline; filename=trains_footer.png Content-Transfer-Encoding: base64 Content-ID: 3__=398519209581029819@sender@foo.org iVBORw0KGgoAAAANSUhEUgAAAbsAAAB6CAYAAAAmqv27AAAAAXNSR0ICQMB9xQAAAAlwSF +lzAAAX EgAAFxIBZ5/SUgAAABl0RVh0U29mdHdhcmUATWljcm9zb2Z0IE9mZmljZX/tNXEAAKGSSU +RBVHja yadda yadda yadda
Actually I already re-inveted the wheel , but would be thankful to know about saner alternatives.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Embedding images into HTML-emails as attachements
by duelafn (Parson) on Mar 04, 2016 at 13:26 UTC | |
by LanX (Saint) on Mar 04, 2016 at 13:48 UTC | |
|
Re: Embedding images into HTML-emails as attachements
by Corion (Patriarch) on Mar 04, 2016 at 12:47 UTC | |
|
Re: Embedding images into HTML-emails as attachements
by Your Mother (Archbishop) on Mar 04, 2016 at 13:13 UTC | |
by LanX (Saint) on Mar 04, 2016 at 13:16 UTC | |
|
Re: Embedding images into HTML-emails as attachments
by perlfan (Parson) on Mar 04, 2016 at 16:49 UTC | |
by LanX (Saint) on Mar 05, 2016 at 15:35 UTC |