Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Design HTML Email Design Going Mobile Testing Email

Images- how come there is no talk about where to host images in your HTML email that will get displayed? Github?

I tried to host the images on Github, but they do not display correctly when I follow along and use MailChimp. What could be the issue? Is this video up to current standards today, or have things changed since this was published? Any help! Thanks!

1 Answer

Max Senden
Max Senden
23,177 Points

Hi Kristin,

Without seeing you code it's impossible to tell why your images don't show up correctly in your emails. Perhaps it's the image itself, perhaps it's the styling in the HTML that messes it up. Always use absolute links in your e-mail code, like so:

<img src="https://vignette.wikia.nocookie.net/austinally/images/1/14/Random_picture_of_shark.png/revision/latest?cb=20150911004230" alt="drawing of a shark with a unicorn">

Having said this, I would advise to drop MailChimp and dive in MJML. It's a coding language very similar to HTML that has been especially developed to structure and style your emails: https://mjml.io/. In my opinion it's much better and flexible than MailChimp. Plus it has a large, growing, community of developers that keep pushing the boundaries of e-mail templates.

Hope it helps, Max

I finally got it to work. Interesting! I'm checking it out now. Thanks for the tip.