MFMailComposeViewController fails to send email but says it succeeded
| Originator: | mjar81 | ||
| Number: | rdar://17930344 | Date Originated: | 06-Aug-2014 08:59 AM |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | 7.1+ |
| Classification: | Reproducible: | Intermittently |
Summary:
I'm having intermittent issues with MFMailComposeViewController in production. I can't reproduce it on my device, but I have multiple customers complaining that the mail sending doesn't work. They hear the little "woosh" like the mail has sent but then the recipient never receives the email. It's not in the user's outbox or sent mail and they can sent mail normally from Mail.app.
After sending some beta users an updated version with debugging enabled, it appears that the MFMailComposeViewControllerDelegate is returning no error and a result of MFMailComposeResultSent.
I'm on an iPhone 5S (T-Mobile), but I've seen this happening on:
iPhone 4S (AT&T) iOS 7.1.1 & 7.1.2
iPhone Model A1429 (Verizon) iOS 7.2.1
I also tried moving the mail sending into its own class that I call from my view controller. See attached code.
Steps to Reproduce:
Check if the user can send mail
if ([MFMailComposeViewController canSendMail])
Create the MFMailComposeViewController, set its subject and message. Doesn't matter if you make it html or text.
Present the view controller to the user.
Hit the send button.
Expected Results:
You would hear a "woosh" sound and the message will go to the intended recipient. The mail should also be in the sent email box in Mail.app
Actual Results:
The "woosh" is heard (indicating the email was sent)
The email is never received by the recipient
The mail is not in the Mail.app sent mailbox
The delegate method is called:
- (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error {
}
error is nil and result is MFMailComposeResultSent
Version:
iOS 7.1.1 & 7.1.2
Notes:
Configuration:
See description above. This is happening on multiple devices running ios 7.1+
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Attached Source Code
Here's a gist to the source code I sent apple:
https://gist.github.com/markrickert/347d512110f5db0be8d8
Response from Apple Technical support (not the bug reporter)
I opened a tech support request through developer.apple.com and received this response:
Follow-up: 609029863 Hello Mark , Thank you for contacting Apple Developer Technical Support (DTS). Our engineers have reviewed your request and have determined that you are experiencing a known bug for which there is no known workaround at this time. Please continue to track Bug ID 17930344 via Apple Bug Reporter (http://bugreport.apple.com). Apple Engineering is ivnestigating [sic] this issue and it would be helpful if you would attach to your bug report a reproducible sample test case. While a Technical Support Incident (TSI) was initially debited from your Apple Developer Program account for this request, we have assigned a replacement incident back to your account. Thank you for your help in discovering and characterizing issues. Best Regards, Developer Technical Support Apple Worldwide Developer Relations