Custom E-Mail Signature (updated)

MailThere is a hack out that will allow you to change your email signature in Mail. We wrote about it before for older firmware but someone emailed us and asked why it doesn’t work with 2.x firmware. The main reason is the directory path has changed to mobile from root. I’m also updating the link to convert the file to XML. It’s not easy, so be ready to spend a few minutes on this one:

1. Make sure your signature is not the default one that only says, “Sent from my iPhone”. Changing it to anything else so it creates a custom file.

2. Backup existing config file for mail. It’s called com.apple.mobilemail.plist and it’s located in the /private/var/mobile/Library/Preferences/ folder. Just SSH in and copy it to your computer somewhere in case you mess the file up :)

3. Copy the same file, com.apple.mobilemail.plist, to your desktop so we can edit it.

4. Before we can edit it you must convert it from binary format to ascii/text format using this site: iappcat.com/plist/bin2xml. Just browse for the file we put on the desktop and click convert. It will then give you a file to download. You can just save over the one on the desktop since we made a backup of the original.

5. Open com.apple.mobilemail.plist with a text editor.

6. Find something like this between the :

Sent from my iPhone.<div><br class="webkit-block-placeholder"></div><div>Learn how to use, hack and mod the iPhone at appleiphoneschool.com.</div>

We will be replacing the above code with our own custom code but we need to convert it from CSS and HTML to XML. To do this, customize the code below and then convert it with centricle.com. (Select Encode)

John Doe

yourwebsite.com

sent from my new iPhone

Your code will look like this after you convert it:

<div style="font: 10px 'Lucida Grande',Verdana, Arial, Sans-Serif;
line-height: 18px;
color: #525252;
margin: 6px 0;
padding: 6px;
border-top: 1px #999999 solid;
border-bottom: 1px #999999 solid;
background: #fff">
<div style="padding: 2px 0 2px 70px; background: url('http://yourwebsite.com/yourimage.jpg">
<strong>John Doe</strong>
<br />
<a href="http://yourwebsite.com">yourwebsite.com</a>
<br />
sent from my new iPhone
</div>
</div>

7. Now save the file and upload it to your iPhone via SSH. You may notice that the image doesn’t show up when you go to compose an email. This is because mail doesn’t connect to the internet during composing so you won’t see the image. Also, many email providers block the image anyway. I have found that Gmail, Yahoo & Hotmail block this feature although sending to another iPhone works fine. A possible way around this is to covert the image to data URL. Again, this doesn’t work for most mail providers either. Here’s a site that will convert it for you: http://www.sveinbjorn.org/dataurlmaker. I suggest just using links and other simple coding.

Using the Data URL here’s what it should look like:

Mine doesn’t have the lines in it because I removed that code. And I’m also using the option of the Data URL that’s why you can see the image in Compose Mode. Here is a link to my exact file: com.apple.mobilemail.plist If you need help just email me at help@appleiphoneschool.com.

Comments

  1. Critter says:

    Nicely done mate. Thanks

  2. John Laffey says:

    I have been at it for an hour and no joy. I got it to work when it was my 2G but this 3G no joy. I have followed to the letter. John

  3. John Laffey says:

    Hi Brooke it would appear the it does not like the picture added. I will give my head a break and try it again tomorrow. Thanks for the reply
    John

  4. totushi says:

    cant wait to try this!!!

  5. Brian says:

    Ew thanks a bunch for this. Will give this a shot later today. Will post my results.

  6. Cezex says:

    It’s easier just to go to Settings > Mail > Signature and write there anything you want :)

  7. Brian says:

    Um the link in step #4 is not working at the moment: http://iappcat.com/plist/bin2xml

    Any other ones I can use to convert the file.

    Thanks.

  8. DeNon Sante says:

    hey guys,
    when i open my .plist from my iPhone 3G it only shows this

    bplist00Ý _LastAccountViewed_ShowToCCIndicators_PlayNewMailSound_FontSizeSetting[ReplyToSelf^TableOffsetKey_PlaySentMailSound_ShowMessageDeleteConfirmation_ShowMessageHeaderDetails^LinesOfPreview\SignatureKey_UISuspendedSettings_DCFLastDirectoryNumber_$F4BF358D-C7E8-494B-8EC5-BDB57171EE7A R15" Q0oSent from my iPhone Ñ_UISuspendedDefaultPNGKeyWDefaultd#7L_q}Œ ÀÛê÷ &MNORSXYZ[]ˆ‹¦®°

  9. Critter says:

    hmm just can’t get it sorted. Even if I take /your/ file and just replace the top account information… when I respring.. it just gives me a default file again…

  10. John Laffey says:

    I glad someone else is having problems. I also default to default file, John

  11. B.Cherry says:

    Wow, that’s cool! i’M still on 1.14. Can iT be done with this firmware?

    -sent from my iPhone
    __________________
    iGet enough exercise just pushin’ my luck!

  12. almanzarj says:

    hey guys this is a great tutorial…i was able to figure out how to get the image to show on outlook, gmail and yahoo…the code to insert the image is below:

    customize as needed and do not forget to encode…

    thanks

  13. almanzarj says:

    for some reason it does not allow me to post here but if someone needs it email me almanzarj@gmail.com

  14. DeNon Sante says:

    sorry if i’m sounding like a complete dufus, but can you simplify the way this is supposed to be done……LOL
    for instance, can i just copy & paste the info doug listed & add my name?
    Also, how do i go about adding a photo like doug did in his signature mail.
    Thanks for the assistance :)

  15. kauffman says:

    for some reason my file com.apple.mobilemail.plist seems to be different…when i convert it to text, it shows stuff of gmail and i erased my gmail account…i only have one email account (my jobs email) and is set to main account. I cant find where it says “Sent from my iPhone” so I dont know where to start from. Any ideas?

  16. Dan says:

    Is there a way to add an image to a gmail signature???

  17. ioffe says:

    I can do it on 2.1 without jailbreaking the phone. But I won’t release the trick until Caissa Chess 2.1.1 is out. We do that for mailing chess games with out signature.

  18. Arne says:

    Well, I can do what I want. After copying the modified .plist file to my iphone via ssh, restarting iPhone and opening a new mail, there again is the text…sent from iPhone….i hate it! What’s wrong with it? Anyone knows???? Please help….

  19. kauffman says:

    i cant get it done…it looks so pro…help me out brooke…doug?

  20. bob says:

    stack is available woot!

    9/28/08

  21. Dis-Enchanted says:

    This site has really taken a severe downfall. I used to be excited to sign on and see updates. Now its an update every 2 days. You would think having CYDIA and APP Store, there would be plenty of app reviews. Im afraid I will now go elsewhere to get my updates. Take care AIS.

  22. kauffman says:

    they must be busy..lets give em a break

  23. generator says:

    The link color changes back to default blue as soon as I send it. Is there any way that this can be changed?

  24. iLauncher says:

    in my case, even after i ssh the com.apple.mobilemail.plist file in /var/mobile/Library/Preferences, and try to compose a mail, it displays my default (not the ‘Sent from my iPhone’ one) signature again and not the custom one. i checked the filesize thru ssh and it had returned to the original filesize.

    • iLauncher says:

      douglas, i hope u check my email i sent u at help@appleiphoneschool.com coz i have finally got the logo to appear in my signature but the text overlaps the logo. if i place the text between the two , the logo completely disappears in the signature. i hope i can solve this. thanx, in advance.

  25. guasha tools says:

    These tips make sense, now I just have to try them, lol

  26. Taylor says:

    Hey, is there a section just for latest news

  27. anne says:

    hey everyone.

    i have an iphone 3g and my problem is very unique.everytime i try to email my photos, my signature doesnt show up in the respective mail. if the email contains only text then the signature shows up. any suggestions???plz help.

  28. Critter says:

    I did this hack on my 3gs. I eventually went back to un-jailbroken mode.. and it sticks with the phone.. which is nice..

  29. richard says:

    Has anyone managed to get this to work?

    I cant even get the plist to convert to a file. Can we have a step by step, from someone that has had some success?

    Please

  30. richard says:

    After a day of tinkering, (and primarily copying your plist file and editing, as it is the only way i could achieve getting a text file) I got mine working.
    I am having difficulties in working out the padding around the picture and the text.

    Are you able to further explain how this works or where to adjust etc for banner type pictures or so multiple lines dont go under the photo but are aligned with the top text.

    But apart from that, good job !! :)

  31. julien says:

    Great tips,.. thanks !!!

    it works for me.

    just one question when I send a mail to gmail the picture don’t appears ?

    any idea to force gmail to show the image ?

Trackbacks

  1. [...] Apple iPhone School ha pubblicato un articolo molto interessante su come creare una firma personalizzata da inserire in tutti i messaggi di posta inviati dall’iPhone. Ovviamente, la personalizzazione va molto oltre la semplice modifica della firma testuale che si imposta da Impostazioni > Email, contatti, calendari > Firma. Vediamo nel dettaglio come si fa su firmware 2.1. [...]

  2. [...] Apple iPhone School ha pubblicato un articolo molto interessante su come creare una firma personalizzata da inserire in tutti i messaggi di posta inviati dall’iPhone. Ovviamente, la personalizzazione va molto oltre la semplice modifica della firma testuale che si imposta da Impostazioni > Email, contatti, calendari > Firma. Vediamo nel dettaglio come si fa su firmware 2.1. [...]

  3. [...] Apple iPhone School ha pubblicato un articolo molto interessante su come creare una firma personalizzata da inserire in tutti i messaggi di posta inviati dall’iPhone. Ovviamente, la personalizzazione va molto oltre la semplice modifica della firma testuale che si imposta da Impostazioni > Email, contatti, calendari > Firma. Vediamo nel dettaglio come si fa su firmware 2.1. [...]

  4. [...] nice email signature on your iphone, you’ll need to jailbreak it first. Here is the link http://www.appleiphoneschool.com/2008/09/26/custom-e-mail-signature-updated/. email, iPhone, [...]

What do you think?

*