문제

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