使用 MFMailComposeViewController,是否可以密件抄送默认邮件帐户?
我相信 iOS SDK 不提供对默认邮件帐户详细信息的访问(有充分的理由),但是有没有其他方法可以以某种方式设置 MFMailComposeViewController 以使用“发件人”地址预填充 BCC 字段?
我是否忽略了一些明显的事情,或者是用户自己填写密件抄送的唯一方法?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
该信息无法通过公共 API 访问。
让他们在首次启动时输入电子邮件?也许在地址簿中搜索“我”或类似的条目?
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:]
-[MFMailComposeViewController setBccRecipients:]
应用程序本身无法执行此操作。但是,如果用户已打开“始终密件抄送我自己”的邮件设置,则 MFMailComposeViewController 将使用发件人地址预填充密件抄送字段。
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".