+ Reply
Results 1 to 20 of 20
  1. #1
    What's Jailbreak?
    Join Date
    Sep 2007
    Posts
    9
    Thanks
    1
    Thanked 6 Times in 1 Post

    Default Custom CSS/HTML Signatures (1.1.2)

    I seen this article and wanted to do it but I'm on vista.

    On one note though this doesn't cover embedding an image because most email clients won't display them or blocks them so I kept my sig strictly html/css.

    Also before starting this, be sure and change the signature from the default "Sent from my iPhone" to anything else so it will create the xml key we'll need later.

    Anyways, after some looking around I found everything I needed online to do it without a mac.

    First SSH into your phone to: ./private/var/root/Library/Preferences

    and copy com.apple.mobilemail.plist to your desktop.

    But it's binary so we need to covert it to XML, so go to:

    http://140.124.181.188/~khchung/cgi-bin/plutil.cgi

    and it will covert it to XML and prompt you to save the converted file, you can just replace the current one on your desktop.

    Next, open the com.apple.mobilemail.plist in a text editor (I used wordpad).

    Look for:

    HTML Code:
    <key>SignatureKey</key>
    	<string>*YOUR SIGNATURE HERE*</string>
    This is where the css/html will be placed (obviously)

    You can go here:

    http://htmledit.squarefree.com/

    to use a real-time html editor to view your work if you don't have a local html editor.

    After you get something you like you need to encode it the xml won't take to the css and html tags outright.

    So go here:

    http://centricle.com/tools/html-entities/

    and paste the css/html into the box and hit Encode.

    Now you can take that code and replace your signature text in the string.

    So if you wanted to add:

    HTML Code:
    <div style="color: green">This is my sig</div>
    It would look like:

    HTML Code:
    <key>SignatureKey</key>
    	<string>&lt;div style=&quot;color: green&quot;&gt;This is my sig&lt;/div&gt;</string>
    Save the com.apple.mobilemail.plist and replace (backup original as it has other email settings in there as well) and your done.

    Custom CSS/HTML Signatures (1.1.2)-img_0070.jpg

    Hope this helps.

  2. The Following 6 Users Say Thank You to mjames For This Useful Post:

    Kyle Matthews (12-11-2007), MOSHO92 (12-12-2007), mrfin (12-11-2007), NetMage (12-12-2007), skeredmobile (02-19-2009), WyldPhoenix (06-22-2008)

  3. #2
    My iPhone is a Part of Me Digital Oxygen's Avatar
    Join Date
    Sep 2007
    Posts
    525
    Thanks
    0
    Thanked 29 Times in 27 Posts

    That's pretty neat. I'll give it a go. Thanks.
    Search NAZI

  4. #3
    Owner / Founder - ModMyi
    aka poetic_folly
    Kyle Matthews's Avatar
    Join Date
    May 2007
    Location
    Tampa, Florida, United States
    Posts
    8,207
    Thanks
    508
    Thanked 4,484 Times in 1,114 Posts

    Nice write-up.
    .


    ↑ ↑ ↓ ↓ ← → ← → B A [select] [start] Kyle Matthews

  5. The Following User Says Thank You to Kyle Matthews For This Useful Post:

    mjames (12-11-2007)

  6. #4
    What's Jailbreak?
    Join Date
    Sep 2007
    Posts
    9
    Thanks
    1
    Thanked 6 Times in 1 Post
    thanks

  7. #5
    Developer NetMage's Avatar
    Join Date
    Aug 2007
    Location
    Virginia
    Posts
    1,292
    Thanks
    71
    Thanked 210 Times in 168 Posts

    Very nice.

  8. #6
    iPhone? More like MyPhone
    Join Date
    Jul 2007
    Posts
    282
    Thanks
    22
    Thanked 19 Times in 16 Posts

    Thank you so much! This is very useful.

  9. #7
    iPhone? More like MyPhone
    Join Date
    Jul 2007
    Posts
    282
    Thanks
    22
    Thanked 19 Times in 16 Posts

    Bumping this because I think more people might want to see it...

  10. #8
    Green Apple WyldPhoenix's Avatar
    Join Date
    Jan 2008
    Posts
    86
    Thanks
    13
    Thanked 7 Times in 7 Posts

    Awesome find guys!

    Quick question: Can you change the actual font face (from Times New Roman --> Tahoma) for the REST of the email ???

    e.g. I use Tahoma font for my signature. But when I type an email the body of the email is in Times New Roman.

    Can't I change the iPhone email app to use Tahoma instead of Times New Roman ????

    Thanks

  11. #9
    iPhoneaholic
    Join Date
    Nov 2007
    Location
    Houston, TX
    Posts
    379
    Thanks
    77
    Thanked 42 Times in 34 Posts

    Wow your right, really good find.

    Work with 1.1.4?
    "Thanks" button. Learn it. Use it. Love it.

  12. #10
    What's Jailbreak?
    Join Date
    Mar 2008
    Location
    Californ I Bay - San Fran Mission
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool,
    Can I put my picture w/signature doing this??

  13. #11
    iPhone? More like MyPhone
    Join Date
    Jul 2007
    Posts
    282
    Thanks
    22
    Thanked 19 Times in 16 Posts

    If you can make it work in HTML, then you can make it show up in your signature. Whether or not the recipient can view it depends on their email reader. Unfortunatly, because you can only modify the signature portion of the message, you can't change the rest of the message outright (font, color, etc.).

    One trick that might work would be to make a message template as you signature. Create a "dummy" charachter in the font/ style of your choice, then use that paragraph to compose your email. It could work, but is a pita...

  14. #12
    What's Jailbreak?
    Join Date
    Mar 2008
    Location
    Californ I Bay - San Fran Mission
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Is there a way I can attatch a photo when replying to an email addy on the web instead of writting down their email addy then selecting a photo from my gallery then typing it manually?

  15. #13
    iPhone? More like MyPhone
    Join Date
    Jul 2007
    Posts
    282
    Thanks
    22
    Thanked 19 Times in 16 Posts

    Quote Originally Posted by Stugotz View Post
    Is there a way I can attatch a photo when replying to an email addy on the web instead of writting down their email addy then selecting a photo from my gallery then typing it manually?
    That's kind of a whole other topic... But short answer: no. To email pictures you currently must select the "email photo" button from the gallery and then compose a new email.

  16. #14
    Green Apple WyldPhoenix's Avatar
    Join Date
    Jan 2008
    Posts
    86
    Thanks
    13
    Thanked 7 Times in 7 Posts

    This does not work in the new v1.2 firmware ... can't find the "sig" string in the plist file!

  17. #15
    iPhone? More like MyPhone
    Join Date
    Jul 2007
    Posts
    282
    Thanks
    22
    Thanked 19 Times in 16 Posts

    Did you make sure you changed the default signature to something other than "Sent from my iPhone"? I'm on windows, so I cant help much right now, but this mod is the main reason I want to jailbreak.

  18. #16
    iPhoneaholic
    Join Date
    Dec 2008
    Posts
    376
    Thanks
    64
    Thanked 27 Times in 20 Posts

    Best tutorial I've used so far... few changes tho. I used this to convert binary to xml online: Binary &mdash; XML .plist converter - iAppCat

    THANKS!!

  19. #17
    iPhone? More like MyPhone skeredmobile's Avatar
    Join Date
    Jun 2007
    Posts
    191
    Thanks
    28
    Thanked 95 Times in 22 Posts

    awesome guide! still works on firmware 2.2.1 (except the .plist is found in: /private/var/mobile/Library/Preferences/ )

    thanks
    Last edited by skeredmobile; 02-19-2009 at 11:01 AM.

  20. #18
    Green Apple
    Join Date
    Nov 2007
    Posts
    80
    Thanks
    8
    Thanked 4 Times in 4 Posts

    everytime I go and replace the file in the dir, and restart my phone it doesn't work. I i look at the file I uploaded to the phone, and re download and open it, its the 'stock' file, but I know im uploading my modified .plist..

    do I need to set permissions or somthing on the dir?

  21. #19
    What's Jailbreak?
    Join Date
    Jul 2007
    Posts
    13
    Thanks
    4
    Thanked 0 Times in 0 Posts

    @mp3supply did you ever get that issue fixed? On my 3g it worked fine, but now on my 3gs I'm having that exact same issue. I put in the modified file and it does not work, if I restart it gets overwritten.

    Anyone tried this on the new model? Or even the old 3g with the 3.0 software?

    Thanx

  22. #20
    iPhone? More like MyPhone skeredmobile's Avatar
    Join Date
    Jun 2007
    Posts
    191
    Thanks
    28
    Thanked 95 Times in 22 Posts

    not sure about the files being overwritten but I did notice that if you use Supreme Preferences 3.0 you can just manually type the html code into the Signature field (Settings > Supreme Preferences > Applications > Mail, Calendars > Signature)

    try that, it should work

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts