How to set from in MFMailComposeViewController?

后端 未结 4 1628
礼貌的吻别
礼貌的吻别 2021-01-05 04:34

How do I set the from address in the MFMailComposeViewController?

MFMailComposeViewController *controller = [[MFMailComposeViewController alloc]         


        
4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-05 05:07

    As far as I know, it's not possible. When the mail composer is open, you will be able to fetch the "from" field from the list of e-mails configured in the device, and the user selected default will be initially set.

    I know that it would be useful to know the list of available "from" accounts and set the composer with a more appropriate user choice. Probably Apple doesn't want to give the app this possibility. You might open a "radar" with Apple, e.g. adding a special view controller to let the user define a different default address for the specific app, this would be a nice addition to the iOS.

提交回复
热议问题