Feature request: Share plugin support to open email client with To, Subject and Body
See original GitHub issueI don’t understand how to pre-populate To field of the email client.
content.shareInformation = function (title, text, url, dialogTitle) {
if (content.isCapacitorMobileApp) {
Share.share({
title: title,
text: text,
url: url,
dialogTitle: dialogTitle
}).then(() => window.console.log("Successful share")).catch((error) => window.console.log("Error sharing", error));
}
};
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
All About mailto: Links | CSS-Tricks
This is somewhat rare to see for some reason, but mailto: links can define the email subject and body content as well.
Read more >Populate mailto links subject and body with page name
Hello. I am trying to figure out how to add custom subject and body text to an email from a mailto link from...
Read more >ShareThis: the subject shows up in the To field of an email ...
shows up in the "To" field of the mail client such as desktop Outlook. How can to fix this? The following is the...
Read more >On-send feature for Outlook add-ins - Office - Microsoft Learn
Provides a way to handle an item or block users from certain actions, and allows an add-in to set certain properties on send....
Read more >Add a mailto link in an email
Insert a link that opens a new email and pre-fills the email address, subject line, and body content ... A mailto link is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It was not working because email account was not configured in the simulator. It works on real device.
All of these options work:
iOS? Android? both? and with a regular anchor tag? or with window.location = ‘mailto…’?