开发者

Using MFMailComposeViewController, is it possible to BCC the default mail account?

开发者 https://www.devze.com 2023-02-21 20:55 出处:网络
I believe that the iOS SDK provides no access to the details of the default mail account (for good reason), but is there any other way to somehow setup MFMailComposeViewController to prefill the BCC f

I believe that the iOS SDK provides no access to the details of the default mail account (for good reason), but is there any other way to somehow setup MFMailComposeViewController to prefill the BCC field with the "from" address?

Am I overlooking 开发者_开发技巧something obvious or is the only way for the user to fill in the BCC herself?


That information is not accessible via the public API.

Make them input their email on first launch? Perhaps search the Address Book for entries like "Me", or something similar?


-[MFMailComposeViewController setBccRecipients:]


There is no way for the app to do this itself. However, MFMailComposeViewController will pre-fill the BCC field with the FROM address if the user has turned on the Mail setting for "Always Bcc Myself".

0

精彩评论

暂无评论...
验证码 换一张
取 消