Jananni M
Jananni M

Reputation: 41

How to change the From address mail id dynamically using mail composer in iOS

My application has the option to log in with google account.

So by using that corresponding login email id, I need to share content through that particular email using MFMailComposeViewController method.

Upvotes: 0

Views: 160

Answers (1)

Er. Vihar
Er. Vihar

Reputation: 1555

There isn't a way to do what you want with the From field. The from address will default to mail account the user has specified as "default" in Settings. i.e iPhone/iPad devices' "Mail". And MFMailComposeViewController is used to send mail with that mail account, not the mail address you used to login your app.

Upvotes: 0

Related Questions