Jump to content

Images in WHMCS mails (system's, mass mail, etc)


chrismfz

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 month later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated