Hotmail Blocks Emails Send With Inline Images

Posted September 12, 2006 at 8:45 AM by Ben Nadel

Tags: ColdFusion

I am NOT stating this as a cold hard fact, but from my testing, it seems that Hotmail is blocking emails that have inline images created using the ColdFusion CFMailParam tag. I was trying to create a more formatted email for my blog comments and wanted to put in an inline Logo using:

  • <cfmailparam
  • file="http://www.bennadel.com/...../kiny_solutions_logo.gif"
  • contentid="kslogo"
  • disposition="inline"
  • />

and the image:

  • <img
  • src="cid:kslogo"
  • width="303"
  • height="75"
  • alt="Kinky Solutions by Ben Nadel"
  • border="0"
  • />

This works fine in Outlook and GMail, but the emails never came through when I sent to Hotmail. When I changed the image SRC attribute back to a fully qualified URL (ex. http://www.bennadel.com/..."), the emails starting coming in. The problem with that though, is that now, the images don't show up unless you click on them, which is, of course, very lame.

Hotmail is so worthless. I am gonna leave it in this way. I just don't care. If you are STILL using Hotmail, then what can I say - you get what you have coming to you (or rather you don't get what you have coming to you). Really, there is no reason to still be with Hotmail at all.



Reader Comments

Sep 13, 2006 at 4:49 AM // reply »
15 Comments

Couldn't you just use something like this?

<cfif ListLast(Email,'@') EQ 'hotmail.com'>
src="{absolute}"
<cfelse>
src="cid:kslogo"
</cfif>

It'd still means clicking for Hotmail users, but at least they're not being excluded completely...


Sep 13, 2006 at 7:32 AM // reply »
11,314 Comments

Peter,

Yes, I could definately do that. And it's probably a good idea now that I have cooled down and come back from the "bad place." I just get so steamed about how over bearing some security has gotten. I mean, we're talking free email accounts here. Why don't they just put it in the Spam folder?

And actually, I did finally get an email last night that was send from the site. It's very interesting. Nothing came through from the development server, but one email came through from the production server.


Sep 13, 2006 at 8:22 AM // reply »
15 Comments

When I used PHP, Hotmail used to put stuff in spam unless I manually set certain headers... maybe the production server set them?

As for the notification e-mail itself, I like it. :)

Only minor complaint is that the "To Peter Boughton, " bit is redundant - I'm reading it so I know it's to me.
Although you could add a footer line saying "this message was sent to <name>(<email>) because you subscribed at <url>", for people that want to verify its not spam or whatever.


Sep 13, 2006 at 8:30 AM // reply »
11,314 Comments

Peter,

Yeah, true the TO line is redundant. I will remove it. I think when I am building stuff I just get into a production mind-set where I want to output information.

Could you tell me a little bit more about these headers that you had to set? I don't know much about email headers.


Sep 13, 2006 at 8:42 AM // reply »
15 Comments

I can't remember exactly what a quick Google found a clone of the PHP manual with some info in (http://terra.di.fct.unl.pt/docs/php/ref.mail.php.htm).

Maybe try the following:

<cfmail to="#whoever#" from="#from#" replyto="#from#" type="html" charset="iso-8859-1">
<cfmailparam name="X-Priority" value="3"/>
<cfmailparam name="X-MSMail-Priority" value="High"/>
<cfmailparam name="X-Mailer" value="Just My Server"/>

[message]

</cfmail>


Sep 13, 2006 at 8:43 AM // reply »
15 Comments

(there should be a "they were, but" in the above comment :S)


Sep 13, 2006 at 8:46 AM // reply »
11,314 Comments

Peter,

Thanks I will take a lool.


Mar 2, 2007 at 6:48 AM // reply »
1 Comments

very nice blog..
thanks


Mar 2, 2007 at 6:50 AM // reply »
1 Comments

very nice work
http://evdenevenakliyat1.evden-eve-nakliyecilik.name


Post A Comment

Comment Etiquette: Please do not post spam. Please keep the comments on-topic. Please do not post unrelated questions or large chunks of code. And, above all, please be nice to each other - we're trying to have a good conversation here.

Please review the following issues:

Author Name:


Author Email:

Author Website:

Comment:

Supported HTML tags for formatting: <strong>bold</strong>   <em>italic</em>   <code>code</code>







  • Help Wanted - Find Your Next ColdFusion Job
Ben Nadel's Company - Epicenter Consulting Recent Blog Comments
Jun 18, 2013 at 9:20 PM
Mapping AngularJS Routes Onto URL Parameters And Client-Side Events
I couldn't find examples of passing multiple arguments using the when() routing statement so figured out through trial and error that you can pass multiple arguments using the following format: .whe ... read »
Jun 18, 2013 at 3:39 PM
Experimenting With The Amazon Simple Storage Service (S3) API Using ColdFusion
Hi Ben, THANKS! While not bleeding edge, it is new to me & I like learning new things every day! ... read »
Jun 18, 2013 at 12:30 PM
Disabling Auto-Correct And Auto-Capitalize Features On iPhone Inputs
Also spellcheck="false" should be mentioned as part of html5 specs ... read »
Jun 18, 2013 at 8:40 AM
Using Named Functions Within Self-Executing Function Blocks In Javascript
Hi Ben, you forgot to mention the most important thing for named self-executing functions - they can be referenced by name ONLY inside their execution context (which is parens in this case), it mean ... read »
dee
Jun 18, 2013 at 7:01 AM
My Safari Browser SQLite Database Hello World Example
hai ben, this program is really good i could understand the concept but i dint know how to save it and how to open it as you have done in the video can u give that details pls ... read »
Jun 18, 2013 at 6:04 AM
Clearing Inline CSS Properties With jQuery
Thanks a lot for for post! It helped me a lot... after being stuck since 24 hrs.. found solution from your post. Thanks again! ... read »
Jun 18, 2013 at 2:31 AM
SOTR 2013 - The Best Conference I Never Went To
I keep watching it, should keep me happily distracted until SotR14 ;) ... read »
Jun 17, 2013 at 9:45 PM
What If All User Interface (UI) Data Came In Reports?
@Jonah, As I was reading what you wrote, it occurred to me that maybe I do something similar to that in some of my client-side code. In an application I'm working on, there are a bunch of unrelated ... read »
InVision App - Prototyping Made Beautiful With Prototyping Tools