Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7537539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:52:44+00:00 2026-05-30T06:52:44+00:00

I am sending an HTML email that contains an image with cfmail. In summary

  • 0

I am sending an HTML email that contains an image with cfmail. In summary the code looks like this:

<cfmail from="me@email.com" to="user@email.com" subject="My Subject" type="html">
    <img src="http://www.mywebsite.com/images/my_image.jpg" style="height:120px;" alt="My Image" />
</cfmail>

As you can see, I set the CSS height attribute to 120px. In the browser, this scales the image to 120px high and automatically determines the proportionate width. In email, at least in Outlook 2007, it does nothing. The image appears with its original height and width.

I’m sending from a ColdFusion9 box, so I’ve tried using cfimage without any luck, but it’s likely I’m just doing something wrong. Any way to resize this image in the email on the fly? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T06:52:45+00:00Added an answer on May 30, 2026 at 6:52 am

    Outlook 2007/2010 doesn’t like css style=”height:150px” however the following will function

    <img src="...." height="150">
    

    Outlook doesn’t play nicely with CSS, and in general you need to fall back to ugly inline styles such as <img height="120">. Here’s a nice reference table showing what each email client does and doesn’t support.

    In there you can see height is not supported in CSS in Outlook 2007/2010 despite it being supported in 2003. That’s progress for you! The TLDR version is simply that so much css breaks in Outlook that it’s rather depressing!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am sending and email that has embedded anchor tag to an image tag
I have a help method that looks a something like this: def html_format(text, width=15,
I have created some code that emails an html email to a given address.
I have an HTML transactional email that I am sending out. The email template
I am sending html emails through php . the email has a background image
I have read a good bit on the limitations of sending html email from
When sending HTML e-mail, I understand that it's a best practice to send a
I am writing a nodejs application that will be sending html e-mail using emailjs
Looking at Mailgun as a good solution for sending HTML email to a large
I'm programmatically sending HTML-formatted email, and setting the font as Arial throughout ( font-family:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.