How do I prepopulate the body and subject field for iPhone mailto links?

Tips and tricks from Tamara Olson Designs

If you’re reading this, you probably already know that you can’t just add all your favorite special characters to your iPhone MAILTO link. But — if you want to prepopulate the body and/or subject line with all kinds of special character crazy, you’re going to need this function:

rawurlencode()

Bonus: Your client can input their messages in normal human speak in their CMS (WordPress, Drupal, etc.), and this function does the heavy lifting of techy translation.


Share Your Thoughts

About the Author

TamaraAuthorPhoto

Tamara Olson is a self-employed UX designer and WordPress developer living in New York City.

Tamara Olson Designs Case Studies