0

If I use the email address "[email protected]" then it doesn't work but if I try [email protected] then it works.

I've tried this from How to open mail app from Swift

let url = NSURL(string: "[email protected]")
UIApplication.sharedApplication().openURL(url!)

and this

let url = NSURL(string: "[email protected]".stringByAddingPercentEscapesUsingEncoding(NSUTF8StringEncoding)!)
UIApplication.sharedApplication().openURL(url!)
Community
  • 1
  • 1
user1898829
  • 3,437
  • 6
  • 34
  • 62

0 Answers0