hap497 hap497 - 1 year ago 111
Swift Question

How can I launch an email client on ios using Swfit

In Android, I can launch an email client from my android application using its Intent mechanism.
In ios, how can I launch its email client from my ios application using Swift?

Thank you.

Answer Source
let url = NSURL(string: "mailto:jon.doe@mail.com")

Note that this works only on a device, not in the simulator.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download