**NOTE: YOUR IPAD MUST BE JAILBROKEN FOR THE FOLLOWING TUTORIAL TO WORK. SEE BOTTOM OF POST FOR JB LINK**
So I hate the default Apple signature. “Sent from my iPad” to me sounds extremely pretentious. No one cares what device you are using. Obviously you can change the default email in ‘Settings’, but being a designer I enjoy having a custom signature for people to view. Anyways, I adapted the current tutorials for iPhone CSS/HTML sig for my iPad, and here is the end result that you will be building:
As you can see, I have custom CSS, custom images, and custom HTML. The process is very simple, here is an overview of the steps we will be following (assuming your iPad is Jailbroken and has Cydia installed, if you don’t know how to do this you probably shouldn’t be messing with plists in the first place):
- Enable SSH on iPad
- SSH into iPad
- Create Signature
- Import Signature into iPad Plist File
- Reboot and enjoy!
Let’s dive in!
1. Enable SSH on iPad
So in order to change the proper signature file we need to be able to SSH into the iPad. However, before we do this we need to generate the plist file, and in order to do that just go into your Mail settings on your iPad (Settings->Mail, Contacts, Calendars->Signature) and just type in anything. This will generate a plist file for the signature in the iPad file hierarchy, which will give us the ability to replace the default signature key.
Anyways, back to enabling SSH. Go into your Cydia app on your iPad, and do a search for ‘OpenSSH’. Install this file, and then do a search for ‘SBSettings’ and install that as well. You will need SBSettings to easily toggle SSH on/off. Once these are installed restart your device. You are now able to get into your iPad using SSH!
2. SSH into iPad
In order to SSH into your iPad, you’re going to need a couple of things:
- FTP Program – I recommend Panic’s Transmit, v4 just came out and it’s really slick (Mac only, PC user have fun).
- Your iPad’s IP Address – This can be found by connecting your iPad to same WiFi network as your computer. Once you are connected, drop down your SBSettings and write down your ‘Wi-Fi IP Address’ (the IP can also be found under the ‘WiFi’ section of the ‘Settings’ app).
Once you have these items, open up your FTP program and create a new connection. Make sure it is SFTP (which is SSH), type in your iPad IP into the ‘Server’ box. Type ‘root’ into Username field, and ‘alpine’ into Password field (without the single quotes). Keep these settings here, and we’ll come back and initiate this connection once we have made our signature.
**Security sidenote**
since MobileTerminal isn’t iPad compatible yet we can’t change these default usernames, so make sure to only keep your iPad connected to secured WiFi networks you trust, otherwise anyone can get into your file system and wreak some serious havoc.
3. Create Signature
So now to the fun part, creating our custom signature. I will put my code to the signature I used, and you can obviously edit/tweak/change to your heart’s content. In order to use images and have them viewable by recipients of your messages, you will need to use a dataURL maker. Once you generate this dataURL, paste it into the ‘src’ attribute inside of your img tags. Here is the code for my signature:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | <div id="sig" style="-webkit-text-size-adjust:none;line-height: 14px; margin: 6px 0; padding: 8px; border-top: 1px #CCC solid; border-bottom: 1px #CCC solid; font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif; font-size: 10px; color: #555; background: #fff"> <div style="padding: 2px 0 2px 0px;" mce_style="padding: 2px 0 2px 0px;"> <div> <div style="float: left; padding-right: 5px;"> <img src="lime-icon.png" width="64" height="63"> </div> <div style="padding-top: 10px;"> <strong style="color: #00964a;" mce_style="color: #00964a;">Bryan Taylor</strong><br> President <span style="color: #00964a;" mce_style="color: #00964a;">-</span> Lime Design<br> bt<span style="color: #00964a;" mce_style="color: #00964a;">@</span>thinklime<span style="color: #00964a;" mce_style="color: #00964a;">.</span>net | 224<span style="color: #00964a;" mce_style="color: #00964a;">.</span>420<span style="color: #00964a;" mce_style="color: #00964a;">.</span>2488 </div> </div> <div style="clear:left; padding-top:5px;"> <a href="http://www.facebook.com/profile.php?id=2417188"><img src="fb.png" width="32" height="32"></a> <a href="http://www.twitter.com/thinklime"><img src="twitter.png" width="32" height="32"></a> <a href="http://thinklime.net/blog"><img src="wp.png" width="32" height="32"></a> <a href="http://www.last.fm/user/btlovesyou"><img src="lastfm.png" width="32" height="32"></a> <a href="http://soundcloud.com/addiktandill"><img src="sc.png" width="32" height="32"></a> <a href="mailto:bt@thinklime.net"><img src="mail.png" width="32" height="32"></a> </div> </div> </div> |
Now, we will move to importing this signature into the iPad plist file.
4. Import Signature into iPad Plist File
Go back to your FTP program and connect to your iPad. Once you are in the file structure, navigate to /private/var/mobile/Library/Preferences. Download the file ‘com.apple.mobilemail.plist’. Duplicate this file and rename it as ‘com.apple.mobilemail.BAK.plist’ and store this somewhere on your computer in case you need to restore the original. Now, open the plist file (you will need a plist editor, one is installed with Apple Dev Tools or you can use something like Plist Editor). Then copy the signature HTML code you generated, make sure to remove all spaces and insert your dataURLs, and paste it into the SignatureKey value section. Disconnect from your SSH, you just input your new iPad signature!
5. Reboot Device
All you need to do now is reboot your device. Reboot your iPad, and send an email and you will see your new signature! Make sure to not edit this signature on the iPad itself, if you want to make any changes SSH in again and replace the old signature with the new one in the plist file.
Any questions or items that need clarification? Feel free to post in the comments and I will respond. Thanks!
6 Comments for Custom HTML Mail Signature On Jailbroken iPad
Oli | July 1, 2010 at 5:47 pm
Lorenzo Giles | July 1, 2010 at 6:33 pm
I having a hard removing all the spaces in my code and inputing them into the Plist without getting syntax errors any Ideas. How do I effectively use your process with the removal of all spaces from my code.
Lorenzo Giles
Systems Designer / IT Specialist
Reef Radio Electronics, LLC
30 Fishing Village Dr.
Key Largo, FL 33037
Cell: (305)896-0688
Cell: (305)522-4775
Office: (305)367-4800
Lorenzog@reefradio.com
http://www.reefradio.com
Oli | July 2, 2010 at 4:51 am
Hi BT, I am using Plist Editor and inserting my optimised code into ‘SignatureKey’ with type ‘String’…..I restart only to find that the iPad has already replaced the file with the old version. Weird!!



This isn’t working for me…the file keeps getting overwritten with the original. Are you able to post a link to your plist file so we can see if yours works?