iphone - why is my sending mail not working from MFMailComposeViewController? -


The

I found the source code here and try to send mail by using it. I got the message 'MFMailComposeResultSent' successfully, but the actual mail has not been sent. I do not understand why it is not working Also, I have attached an image to NSDT, but it does not display in the MailPageView. What's wrong with this code? In fact, I only need to call native mail application with an attachement image, but I've heard the original app calling with no way attachement. Please tell me what is wrong with my code. Issue 1: No mail sends Melaksojhvijhyu, Issue 2: Does not display the attached image best: drive's native mail application with the attached image I am waiting for your answer happily Thx.

  - Send (zero) mail {NSLog (@ "mail"); Mfmalkposaviawkantrolr * Mfmalviav = [[Mfmalkposaviawkantrolr light] Init]; NSDTA * IMGDITA = UIMAGPNGR Presentation (IMGPV.IJEZ); MfMailView.mailComposeDelegate = self; [MfMailView addAttachmentData: imgData mime type: @ "image / png" file name: @ "Me.png"]; // also tried this // [mfMailView addAttachmentData: imgData MIME type: @ "image / png" file name: @ "I"]; [Set up MfMail theme: @ "to ~ cents"]; [MfMailView setMessageBody: @ "Download Me!" IsHTML: Yes]; [Self-Present Model View Controller: Animated MFMallouw: Yes]; } - (void) mailComposeController: (MFMailComposeViewController *) controller didFinishWithResult: (MFMailComposeResult) results in an error: (NSError *) error {switch (result) {case MFMailComposeResultCancelled: NSLog (@ "? Cancel"); break; Case MFMailComposeResultSaved: NSLog (@ "Saved?"); break; Case MFMailComposeResultSent: NSLog (@ "Sent succed"); [Dismissable Model Vic Controller Permission: Yes]; break; Case MFMailComposeResultFailed: NSLog (@ "sent failure"); NSLog (@ "% @", error); break; Default: Break; }}    

  1. Make sure that you have configured account settings.
  2. I did not find any recipients ??

    You can take a reference on this.

Comments