I’ve been using Fastmail as my email provider for a couple of years now, but only recently set up their subdomain addressing feature which allows me to use email addresses like
email@example.com. I don’t get much spam on my Fastmail account to begin with, but I appreciate the peace of mind that if I do get some I can work out where it came from pretty easily, and it’s not as easily stripped as plus address (like
The code is pretty straightforward, just a few lines:
I generated a bookmarklet using the code above, dragged it to my bookmarks bar, and that was it.
All we do is set the subdomain you’re using, grab the hostname, then concatenate them and set the value of the
activeElement on the page to the generated email address. If you’ve focused on the correct form field you’ll be good to go.
You’ll also notice that I set up an alias of
me at my domain. I’m really happy with the approach so far. The only issue I’ve had is my own lack of consistency in the email addresses I use, and I’m optimistic that this will take care of that.
There are a few things I’d probably add eventually like stripping off subdomains and raising a warning of some sort if no text field has focus when clicked. I could see potentially wanting to remove the dots from the hostname, if I run in to enough overzealous regular expressions. But I wanted to get this done and blogged about while my kids were napping today, so this will do for now. I figure I’ll use it for a while and see how I like it. It was also an excuse to get myself blogging again, as I’ve been thinking about writing a lot lately but hadn’t taken any steps to get back at it.