有什麼辦法從MFMailComposeViewController獲取狀態嗎? 可以說我正在發送一個包含20個圖像的電子郵件,我想顯示一些負載,然後在發送完成後隱藏加載後。MFMailComposeViewController發送狀態
0
A
回答
1
否。一旦用戶選擇發送電子郵件並在應用程序中調用委託方法,則電子郵件將位於等待由某個後臺郵件守護程序發送的發件箱中。沒有API來獲取這種電子郵件的狀態。即使郵件因某種原因無法發送,應用程序也無法獲取此信息。
-1
try the delegate methods may be it help you.
#pragma mark - MailComposeController
- (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error
{
switch (result)
{
case MFMailComposeResultCancelled:
NSLog(@"Mail cancelled: you cancelled the operation and no email message was queued.");
break;
case MFMailComposeResultSaved:
NSLog(@"Mail saved: you saved the email message in the drafts folder.");
break;
case MFMailComposeResultSent:
NSLog(@"Mail send: the email message is queued in the outbox. It is ready to send.");
break;
case MFMailComposeResultFailed:
NSLog(@"Mail failed: the email message was not saved or queued, possibly due to an error.");
break;
default:
NSLog(@"Mail not sent.");
break;
}
}
相關問題
- 1. MFMailComposeViewController不發送郵件
- 2. MFMailComposeViewController從iPhone發送郵件
- 3. MFMailComposeViewController發送電子郵件
- 4. 發送電子郵件使用MFMailComposeViewController
- 5. 爲什麼MFMailComposeViewController不會發送消息?
- 6. 在iPhone中使用MFMailComposeViewController發送郵件
- 7. 不使用MFMailComposeViewController發送郵件
- 8. 使用MFMailComposeViewController發送.wav文件
- 9. MFMailcomposeviewcontroller發送按鈕被禁用
- 10. 發送沒有MFMailComposeViewController的郵件
- 11. 如果服務器狀態無效,則發送Http狀態碼?
- 12. Web開發中推送狀態
- 13. 發送3狀態複選框的值
- 14. 的strophe聊天發送狀態
- 15. 何時發送HTTP狀態碼?
- 16. iOs - 不使用UIWebView發送狀態
- 17. Koa每次發送狀態404是
- 18. 發送數據與$狀態參數angularjs
- 19. MySQL多個發送數據狀態
- 20. 通過React路由發送狀態
- 21. 如何正確發送406狀態碼?
- 22. Camel rest-dsl發送400狀態碼
- 23. 發送短信的Android卡在狀態發送
- 24. 亞馬遜SNS - 發送短信,發送狀態
- 25. 如何通過iPhone SDK中的MFMailComposeViewController發送密件抄送?
- 26. 如何推送MFMailComposeViewController? (iOS 5)
- 27. 如何在MFMailComposeViewController中將狀態欄更改爲白色?
- 28. 帆JS發送404個狀態丟失的靜態文件
- 29. 發送發佈數據並獲取狀態代碼
- 30. 子狀態不會觸發角狀態下的父狀態
除非我弄錯了,否則問題是關於在收到'MFMailComposeResultSent'結果後獲取電子郵件的狀態。 – rmaddy 2013-02-12 21:11:41