How-To: Create Custom CSS Email Signatures on the iPhone

16 Comments

iPhone Mail IconPreviously, I discussed how to create custom CSS email signatures for Mail in Mac OS X. This week, we’re going to look at what it takes to replicate the same signature on your iPhone.

What You Will Need

  • Your Mac
  • Your iPhone (it needs to be jailbroken)
  • PlistEdit Pro (or another application capable of editing plists)
  • Coda (or another application for editing HTML)

Before We Begin

To use a custom CSS signature, we will be modifying a preference file on your iPhone. Simply using copy and paste within the new 3.0 OS will not maintain the HTML and formatting of our signature. Your iPhone should already be jailbroken and capable of mounting as an Apple File Protocol (AFP) share on your Mac. For instructions on this process, see here.

Step One

Once you have logged into your iPhone over AFP, browse to the following location:

/private/var/mobile/Library/Preferences

Copy the file com.apple.mobilemail.plist to your Mac. Go ahead and duplicate this file, appending “backup” to the end of the filename so you have a clean copy in case something goes wrong.

Step Two

Open your email signature that we created (see the original post here) in your HTML editor and copy the contents to the clipboard.

Step Three

Use PlistEdit Pro to open the file you copied earlier in Step One. Towards the bottom of the list, you will see an entry called “SignatureKey.” The value for this string will match your current iPhone signature.

Double-click this value to highlight the contents and delete what’s there. Now paste the HTML code for your email signature that we copied in Step Two. Save this file back to your desktop.

Step Four

Browse back to the Preferences folder on your iPhone. Copy our new edited plist file and replace the original on your iPhone.

iPhone HTML EmailStep Five

All done! Create a new email and you should see your HTML email signature at the bottom.

Limitations

Unfortunately, due to limitations in the iPhone 3.0 OS, Mail on the iPhone only supports one signature. There are third-party applications available on the App Store that address this issue, but I have not tested them with HTML email signatures. Hopefully in a future OS update, Apple (s aapl) will allow users to have unique signatures for multiple mail accounts.

This process and file location has remained the same since iPhone OS 1.1.4 and will likely remain the same, meaning as new OS updates come out, they should not break this functionality (unless Apple adds support for multiple signatures at some point). However, if an update does break your signature, the process outlined above should still work to put it back.

16 Comments

Bryan Taylor

Hey loved your post. Just another tip that I didn’t see addressed here, if you’d like to add images into your custom sig the best bet is to use a dataurlmaker since a lot of email programs won’t display images linked from the web.

Check it out here: http://www.sveinbjorn.org/dataurlmaker

anonymous

Oh my gosh!
It worked fine!
But I had serval problems one of ’em was that
plistEditor on my Crapdows wasn’t been able to save it (xml parse error or sth like that, but this: http://htmlhelp.com/reference/html40/entities/special.html helped me and resolved my problem!
Now I’ve AWESOME html signature…
I’ll be tweaking it a little bit.
Thanks for this great guide!

Ste7en

Best usage for this for me is that I wanted my e-mails to send HTML formatted instead of the default Times New Roman. I followed your guide to edit the .plist but above the signature space I also included an [ insert text here ] field. Every time I compose a message I replace that with my content and now I can send HTML e-mails from my iPhone. Very handy for following corporate brand standards.

Thanks for your help!

Sharninder

Awesome. Now when would Apple put this in it’s own Mail.app. Workarounds are all nice and all, but then they’re just workarounds .. not the real deal.

Alexander Olma

Doesn’t work for me. The iPhones doesn’t show any changes if I’m editing the com.apple.mobilemail.plist-file. Any ideas?

email appending

I have developed one email appending application for online marketers. Now i want to make that application iPhone friendly. Can anyone help me in this case. Which programing language i need to use.

jenn

ummm maybe i’m dumb but i can’t get it to work. below is my plist and i think my problem is i’m pasting the new signature into the wrong area:

bplist00Ú  _LastAccountViewed_ShowToCCIndicators_PlaySentMailSound_ShowMessageHeaderDetails_FontSizeSetting_PlayNewMailSound^LinesOfPreviewSignatureKey_UISuspendedSettings_DCFLastDirectoryNumber_$D39121C3-EB8F-400F-89B2-5676B1DCE565 R13 Q0_Sent wirelesslyÑ_UISuspendedDefaultPNGKeyWDefaultd1FZu‡š©¶Ìå  ’*EMO

Also, is this plist supposed to be this short? thanks for any help/advice

Apex

There’s also a pretty sweet work around to get HTML signatures in mail.app. Here’s a link to the tutorial: http://su.pr/7kvEvG

That being said, HTML in signatures should be kept to a minimum.

zoblue

I used PropertyList Editor on my PC and it required changing all the carat symbols in the HTML to ‘<‘ and ‘&gt’ character entities. Otherwise, it worked fine!

Thanks!

zoblue

The ‘less than’ carat mark was encoded but you get the idea. :)

Howie Isaacks

I was all excited about the prospect of being able to do this until I found out that I have to jailbreak my iPhone. FAIL!

mech

failing to realize all the advantages of jailbreaking: FAIL!!!! on you sir

please, continue being Apple’s slave, we don’t mind

Comments are closed.