0

If I use the email address "appname.app@company.co.za" then it doesn't work but if I try appname@company.co.za then it works.

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

let url = NSURL(string: "appname.app@company.co.za")
UIApplication.sharedApplication().openURL(url!)

and this

let url = NSURL(string: "appname.app@company.co.za".stringByAddingPercentEscapesUsingEncoding(NSUTF8StringEncoding)!)
UIApplication.sharedApplication().openURL(url!)
Community
  • 1
  • 1
user1898829
  • 3,437
  • 6
  • 34
  • 62
  • Have you tried to prepend "mailto:"? `let url = NSURL(string: "mailto:appname.app@company.co.za".stringByAddingPercentEscapesUsingEncoding(NSUTF8StringEncoding)!)` – Kirsteins Nov 11 '14 at 07:18
  • right. I feel bad now. I removed the mailto part when changing the email address. – user1898829 Nov 11 '14 at 07:28

0 Answers0