chrismfz Posted January 7, 2014 Share Posted January 7, 2014 Is it possible (I didn't dig it much) to send emails with images inside the mail? I don't know how to say it clearly so I'll try to describe it I saw a few mails that the images inside aren't links but attachments. So users don't need to click any buttons like "allow images" and stuff like that. Trying to view source how it works I saw that the images are parsed like attachments like that: --_=_swift_v4_138912468852cc5c508b8d5_=_ Content-Type: image/png; name=logo.png Content-Transfer-Encoding: base64 Content-Disposition: inline; filename=logo.png Content-ID: <1389124688.52cc5c50836a5@swift.generated> iVBORw0KGgoAAAANSUhEUgAAAJEAAAAoCAYAAAD+HRieAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJ And then they just use this in the HTML code: <img src=3D"cid:1389124688.52cc5c50836a5@swi= ft.generated" alt=3D"Logo" /> Is it something like that possible with WHMCS ? Or it will be in any future release ? It's useful (I think) because you can deliver beautiful "as is" emails without worrying if it's gonna seem crappy or broken if someone doesn't press the "allow images" button. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 8, 2014 Share Posted January 8, 2014 that example code is using Swift Mail (swiftmailer.org), though you could probably create the same effect by using base64 images - but i'm unsure if you could modify the header sufficiently to enable it in whmcs. personally, I wouldn't go down this road because, as far as I recall, every email i've received that contained base64 images was spam. also, you can't override someone's settings - so if they have images disabled, or the email app or site blocks them (i'm pretty sure hotmail still does), then there's no real advantage to using this method. 0 Quote Link to comment Share on other sites More sharing options...
denis Posted March 1, 2014 Share Posted March 1, 2014 according to this article here: http://www.campaignmonitor.com/blog/post/3927/embedded-images-in-html-email the "cid" method should definately WORK on all modern email clients. Now it's just a matter of whether WHMCS would be willing to code the functionality for it. At present with the standard 'remote url' insertion method which gets blocked by all decent email clients, you're better off disabling the email logo altogether.. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.