Including a mailto url with subject and body that will open in Gmail/Mailbox apps

StackOverflow https://stackoverflow.com/questions/17819799

  •  04-06-2022
  •  | 
  •  

Вопрос

I'm kind of baffled that this mailto url successfully opens a new email appropriately filled out on the iOS mail app, but fails to open anything at all when clicked on in the Gmail and Mailbox apps (most up to date versions):

<a href="mailto:email@address.com?subject=This is the subject&body=This is the body">link</a>

Any ideas around how to get this mailto url to open in Gmail/Mailbox iOS apps as it does in the standard iOS mail app? Thanks.

Это было полезно?

Решение

It's a bug with the Gmail app, see below link. Leave a comment on that thread so the Gmail team notices :)

https://groups.google.com/a/googleproductforums.com/d/msgid/gmail/0fac71fe-546f-4dba-a85c-93c28ac1bbc6%40googleproductforums.com

Другие советы

Try replacing your spaces with %20 in your subject and body.

Like this:

<a href="mailto:email@address.com?subject=This%20is%20the%20subject&body=This%20is%20the%20body">link</a>
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top