Search code examples
iosyahoourl-schemeopenurl

Using openURL to send an email from Yahoo Mail client


What are the openURL parameters for Yahoo Mail?

"ymail:" appears to work, but it just simply opens up the application. I can't seem to figure out how to pre-fill the recipient address.


Solution

  • Got it

    "ymail://mail/compose?subject=Subject&[email protected]&body=message_content"
    

    SWIFT 3.0

    if let appSettings = URL(string:"ymail://mail/compose?subject=Subject&[email protected]&body=message_content") {
                UIApplication.shared.open(appSettings, completionHandler: { (success) in})
            }
    

    Don't forget to add "ymail" into LSApplicationQueriesSchemes in your Info.plist