Why resizing people’s browser windows is the devil’s work
I've been working on a bunch of holiday card emails for clients lately and they've all had designers asking if we can resize people's browser windows to fit the square box they designed for the flash-based card. The answer is yes, but no.
Most people think everyone uses the computer just like they do, although there are so many different ways to work with computers that most people don't do any one thing. This means that most people are wrong in their assumptions about most people. Yet most people don't realize this. (This is true for so many things, but I won't go into that.)
Resizing people's browser windows is always a bad idea, in my opinion. Nothing you could create is so important to rearrange my stuff and possibly affect the default settings on my computer. It's especially a bad idea to do this from an email, where the user may not already have a browser window open and it's more likely that you're going to screw with their defaults. If the user closes the window without any other windows open, you'll reset their preferred size for all new windows to be the size you selected for your holiday flash box. The user must figure out how to undo this after they've finished being abused by your content. Don't even get me started on taking away people's toolbars and menus. Just try to figure out how to get a menu back without a menu. The remotest chance of doing this to any of your recipients should be avoided at all cost.
It's a bit like giving someone a gift and then coming over and rearranging their furniture so that your gift is perfectly displayed in their living room. Yea, nice, but get over yourself. I appreciate the gift but the rearranging my stuff part left a sour taste in my mouth. Hmm, how do I get you to not do that next year...
Yes, if you know what you're doing you can avoid this or recover from it. There are even complicated hoops you can jump through to avoid setting people's future window sizes. But why? Why should the user have to know what they're doing? Are you really that much of a design nazi? The true problem is that you've designed a square box, not a flash page. Flash resizes very nicely to fit the window, why not just take advantage of that? Put padding around the flash content and let it fill the window, whatever size your recipient prefers.
Either way, I decide what size my browser window should be, not you. If you resize my browser window you better have an unsubscribe link.
Something Happened
I got this email regarding a rebate I filed online.
From: "CompUSA eRebates"
Date: December 12, 2006 11:02:27 PM PST
To: "Derek Gulbranson"
Subject: Your CompUSA eRebates StatusDear Derek Gulbranson,
Thank you for participating in the CompUSA eRebates program.
Our records show that your eRebates account status has changed.Your account status may change for ONE of the following reasons:
-Your receipt information entered has matched our transaction data and your rebate is in pending.
OR
-Your rebate has completed the pending period and is valid. Check is in processing.
OR
-Your receipt information entered has not matched our transaction data after 5 days.
(If your receipt information has not matched our transaction data after 5 days, further action may be required from you.)
So, you might want to check it out. But if you don't, you have a 1 out of 3 chance things could go badly for you.
Update: Feb 3, 2007. I got my check in the mail. Guess I was lucky.
Your Spam Filter Is Your Problem, Not Mine
If I send you an email and it's intercepted by your spam filter, that's your problem not mine. I've had people send me email telling me about how their spam filter blocked my email. Thanks for the info but that's a problem you need to deal with. There is absolutely nothing I can do about it. My email is functioning properly, your spam filter is not. It's your problem. Fix it. Add me to your safe list.
The nosend Attribute
What is the nosend attribute?
It is usually found in an image tag and looks like this: . It is generally discovered by inquisitive developers by examining a "right-click > view source" on HTML email messages in Outlook. Google generally provides more questions than answers, so I thought I would include what I believe to be true about mysterious nosend attribute.
The nosend attribute is an undocumented and non-standard HTML attributed used by Outlook (go figure) to decide how to handle the URLs for images included in HTML email.
Without the nosend attribute (or with nosend="0"), Outlook has a few different behaviors. If you're all set up to send the HTML email using Outlook, if you copy the images to your stationery folder and reference them in the HTML with relative urls (without the http://), when you send the email Outlook will attach the images to the email and rewrite the links to reference the attached images. Recipients get an email with lots of image attachments, and the references usually break when people forward or reply to the email.
If you use absolute urls (with the http://), Outlook usually doesn't rewrite the references when you send the email, but if they foward/reply, Outlook will attach the images as above, then the next forward/reply usually breaks them.
With the nosend="1" attribute on your image elements, and using absolute URLs, Outlook will not rewrite your image URLs. There's an almost infinite number of ways users can send, attach, include, reply, and forward these emails so it's still possible for users to break the URLs. But as far as I can tell, the nosend attribute tells Outlook not to mess with the URLs.
BTW, if you're using CSS in HTML email, Outlook generally leaves image URLs in stylesheets or inline style attributes alone.
Why Yes, Actually, I Would Like to Track That Package
Since my Powerbook is in the shop I've been using Gmail for again for a week or two and I was reminded again how much I actually like computers reading my email. Wish they could read it all for me and just tell me what to do.
![]()
It gave me a link straight to the tracking number mentioned in the email. Wonderful. I've noticed when people include their postal address in their corporate email signature Gmail includes a google map link to their location. The only thing I miss with Gmail is drag and drop. I bet they're working on it.
It's not very often that you can respond to your computer's requests with a heartfelt "well, yes, that's a great idea actually."
How To Use Outlook to Send an HTML File as the Body of an Email
I create a lot of HTML email templates and one of the more frequent questions after sending the HTML file to the client is how do I actually send that HTML file as an email.
Here's instructions for how to get the HTML into Outlook so you can send it as an email.
-
Save the HTML.
If you have recieved the HTML file via email, save the attached HTML out of the email you received it in using one of the following methods:
- right-click on the attachment and choose "Save Attachment"
- drag and drop the file to your desktop or local filesystem
- From the File Menu of the open message choose "File > Save Attachments."
DO NOT
double click on the attachment to open it and then choose "File > Save As." This causes the HTML file to be opened in your web browser, and choosing "File > Save As" from a browser may helpfully rewrite everything.
(I was suprised to learn that "save the attachment" means quite a few different things to different people.) -
Put it in the Stationery Directory.
Move the HTML file to:
C:\Documents and Settings\*userid*\Application Data\Microsoft\Stationery.
The Application Data folder is a hidden folder so you may not be able to see it by simply browsing to it. You can change your preferences to display hidden files and folders (Windows Explorer > Tools > Folder Options > View > Show hidden files and folders), or copy and past the above location into the Windows Explorer (double-click My Computer) address bar, replacing *userid* with the correct folder.
The Stationery folder is created by Outlook the first time you use the stationery feature. If you do not see the stationery folder, try creating a new message as below with any other stationery and the folder will be created in your user directory.
-
Action > New message using > More stationery...
From the Action menu of the main Outlook window, choose Action > New mail message using > More stationery..., then choose your HTML file from the list. This will open a new email message with your HTML file as the body.
Outlook displays HTML differently when it's editing the HTML as opposed to simply displaying it. This can cause extra spacing to appear at the end of lines or around images. Sending the message to yourself will confirm that these types of display problems will not appear for the recipient.
How To Use CSS in HTML Emails
When I started working on HTML emails I tried Googling for CSS and HTML email and it seemed the theme of the articles was to warn designers not to use CSS in email because it is not widely supported by email clients. Instead, they recommend using the tag that was deprecated in 1999.
So I think these other articles are just outdated. There was a time when CSS and email would have been a naive combo. Today, I have a hard time imagining anyone well-versed in CSS recommending tags. Since I have been using CSS in HTML emails for a while now, I thought I would put together some more current information from my current practices. Perhaps others also need to create HTML emails, but cringe at the site of tags.
Sending HTML Emails from the command line
One common problem with sending HTML emails is finding something to do the actual sending with. I've got the HTML, but how do I actually send it to the distribution list without my email client turning it to garbage in the process?