Mustafa
Mustafa

Reputation: 20564

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.

Upvotes: 1

Views: 1470

Answers (1)

Ely Dantas
Ely Dantas

Reputation: 705

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

Upvotes: 1

Related Questions