create QR code to send email on both iPhone and Android

24,289

Solution 1

Sean Owen is exactly correct. But let me also add a couple of notes. First, not all email clients will provision all of the fields. Second, do use a URL shortener before converting to a QR code. A simple QR code with nice, big blocks will look better and scan more easily. The first URL shortener I found that works with mailto: links is TinyURL.

So, just to be really explicit, your work flow looks like this:

mailto:your@address?subject=Hello%20there&body=You%20are%20hired

Paste that URL into TinyURL and get the short URL.

Paste the short URL into Create QR Codes and get the QR code.

Solution 2

The correct syntax is:

mailto:[email protected]?subject=bar&body=baz

Barcode Scanner supports this and hopefully iOS readers do too, but, this is really all you can and need to do on the encoding side, regardless.

Solution 3

I too was having trouble with the iPhone wanting to save the email address as a contact.

I found a site that generates the sort of QR code I was after, tested it to check if it worked (which it did) and then 'reverse engineered' it to see the raw source code.

The syntax is as follows:

MATMSG:TO:[email protected];SUB:The subject;BODY:The body;;

Hope this helps someone out there :)

Share:
24,289
user709903
Author by

user709903

Updated on July 09, 2022

Comments

  • user709903
    user709903 almost 2 years

    I am trying to create a business card with a QR code that someone can scan and write an email to me. I want the QR code to pre-populate my email address and the subject. I tried the solution in this post (this post is the best one that I found):

    http://www.labnol.org/internet/email-with-qr-code/19610/

    I encountered a couple of problems - On the iPhone, the reader (QRReader app) just opens the MATMSG in plain text (I want the email client to open with the text populated). In Android (using the bar code scanner), it creates a new email but without the text or subject.

    Is there any QR code solution that can get the clients to open their email client with my email address and subject populated at a minimum (for both iOS and Android devices)?

  • user709903
    user709903 over 12 years
    Thanks for the answer. I get a blank email in Android addressed to the email address and an "unknown contact, do you want to add contact?" message on iPhone. The Android system seems to be better placed to handle QR codes since it will at least open gmail with the email address in the "to" field. In iOS, one has to copy this email address, open email client and paste it in. I was hoping to eliminate all of these steps.
  • Sean Owen
    Sean Owen over 12 years
    No, it works on Android. Scan, choose "Send email", and then use Gmail to complete the action. I don't know about iPhone. But this is the standard mailto: syntax according to the RFC.
  • user709903
    user709903 over 12 years
    Awesome! The URL shortener did the trick. So the solution is to take the URL given in Seth's answer and use a URL shortener will do it.
  • counterbeing
    counterbeing almost 10 years
    The other way wasn't working with iPhone for me. Anyone know if this one works with Android? Or others?
  • Tester
    Tester almost 5 years
    i need syntax like this "MATMSG:TO:[email protected];SUB:The subject;BODY:The body;;" for generating QR send sms with body and saving contact information. Can you help me?
  • Remington Steed
    Remington Steed almost 3 years
    This method still works 10 years later. A QR code directly to a mailto: doesn't work, but redirecting from TinyURL or another service works correctly.