Jayesh
Jayesh

Reputation: 681

mailto: links not opening mail app on UWP ionic app when the body length is more than 2009

I am trying to open email app outlook(office 365) from my ionic UWP app and I am passing the subject & body as variable string and if the length of the body value is more than 2009 email is not opening, any way we can increase this limit?

 window.location.href = "mailto:?subject=BenchNotes&body=" + str;

Upvotes: 0

Views: 316

Answers (2)

Eugene Astafiev
Eugene Astafiev

Reputation: 49395

Using the "mailto:" protocol doesn't guarantee that Outlook will be opened on the end user machine. A default email client will be run for processing the link with parameters.

You can automate Outlook from your UWP. A supported way to do this is via a full-trust process that you can launch from your UWP. Following that way, your UWP will be able to manipulate the Office apps. Look at Desktop Bridge samples.

Upvotes: 0

Dmitry Streblechenko
Dmitry Streblechenko

Reputation: 66215

AFAIK it is browser specific - it is 2083 characters for IE and 2048 for Windows Explorer.

Upvotes: 1

Related Questions