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,246 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,246 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,246 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
May 25, 2013 at 10:01 PM
My Experience With AngularJS - The Super-heroic JavaScript MVW Framework
@Avi, Really glad to help! @Jaredwilli, I'm finding a this image hits home with a lot of people :) Hopefully we can all work through the rough patches together! @Prateek, AngularJS has error ... read »
May 25, 2013 at 9:53 PM
Nested Views, Routing, And Deep Linking With AngularJS
@Mrsean2k, I'm glad I could help! I haven't been able to keep up with the ui-router stuff. I keep saying that I'll carve out time, but I just haven't gotten to it :( ... read »
May 25, 2013 at 9:49 PM
What If All User Interface (UI) Data Came In Reports?
@Jonah, Thanks for the book recommendations. I am looking them up right now. I can see that Object Thinking is available for the Kindle App - sweet! Also, I just recently heard Martin Fowler on the ... read »
May 25, 2013 at 9:41 PM
HashKeyCopier - An AngularJS Utility Class For Merging Cached And Live Data
@Chris, I'm super excited to hear that my posts are helpful. I am also loving AngularJS; but, it definitely has some caveats and some odd behaviors and some things that just don't seem to "wor ... read »
May 25, 2013 at 9:36 PM
Ask Ben: Manually Enforcing Basic HTTP Authorization In ColdFusion
@Adam, @Jason, After reading these comments, I double-checked my latest implementation and I am happy to report that I am using listFirst() and listRest(). ... read »
May 25, 2013 at 9:31 PM
Using "//" And ".//" Expressions In XPath XML Search Directives In ColdFusion
@Daxesh, I am not sure I understand the question about the current node. If you already have a reference to the current node, why would you need to query for it? As for parent node, I believe that ... read »
May 25, 2013 at 10:08 AM
Using "//" And ".//" Expressions In XPath XML Search Directives In ColdFusion
@Ben, my question is that i want the current node with its tag and its parent node. i just want only that data. So, give me the solution for that. and remember solution is working on " xpath 1.0 ... read »
May 25, 2013 at 10:01 AM
Using "//" And ".//" Expressions In XPath XML Search Directives In ColdFusion
hey ben, i want get my current node tag and also want the root node tag withing. So, how can i fix it.. ! ... read »
InVision App - Prototyping Made Beautiful With Prototyping Tools