Questions tagged [mfmailcomposer]

an iOS object allowing application users to send mail

This tag dates back to iOS 5. Prefer the object named MFMailComposeViewController and its tag

170 questions
55
votes
7 answers

I have REAL misunderstanding with MFMailComposeViewController in Swift (iOS8) in Simulator

I create a CSV file and try to send it by e-mail. Displays a window to send mail, but is not filled with the body of the email, and no attached file. Application hangs with this screen: button "Cancel" does not work. After a few seconds in the…
30
votes
5 answers

MFMailComposeViewController in Swift

This is sample code: import UIKit import MessageUI class ViewController: UIViewController, MFMailComposeViewControllerDelegate { @IBAction func showEmail(sender : AnyObject) { var emailTitle = "Test Email" var messageBody =…
Alexey Nakhimov
  • 2,593
  • 8
  • 31
  • 49
27
votes
3 answers

Issue when using MFMailComposeViewController

I have a tricky problem. In one of my app, with over 150.000 downloads... I have a problem which seldom occurs and which I can't seem to figure out. The problem is the following: In a view where the user can share a list via email, I open the mail…
Paul Peelen
  • 9,588
  • 15
  • 82
  • 162
24
votes
9 answers

MFMailComposeViewController dismisses right away

The situation is the MFMailComposeViewController was going to be presented. I saw it was presented half-way done, but then it got dismissed. This is the error: _serviceViewControllerReady:error: Error Domain=_UIViewServiceInterfaceErrorDomain…
16
votes
2 answers

iOS6: MFMailComposeViewController slow to load and flashes black screen; MailCompositionS begins hogging memory

On iOS 6, after sending a few email messages (by using MFMailComposeViewController), the email screens become very slow to open- at first opening with none of the fields populated (no Subject, no body, etc.) for a few seconds, and eventually (after…
14
votes
6 answers

MFMailComposeViewController's Cancel Button (action sheet possibly) freezes the view

I've seen several questions before such as this but for the lack of an accepted answer as well as having implemented everything as needed I still continue to face the issue as follows: I display the mail composer but on clicking cancel, the composer…
11
votes
4 answers

Android : how to open a mail composer view?

I just want to know how to open Mail Composer in Android. With iOS, I would do something like this : MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init]; [controller setSubject:@"Mail subject"]; [controller…
Rob
  • 14,827
  • 20
  • 65
  • 104
9
votes
4 answers

iphone email attachment

I used the MessageUI framework to send the mail with attachment from my application. But i got the following error, 2009-09-07 19:52:23.483 emailTest[11711:5b17] Error loading…
SST
  • 2,042
  • 5
  • 26
  • 42
8
votes
2 answers

Why MFMailComposer with is not showing the image in mail?

I am sending some images in mail using MFMailComposer. I am converting the image to Base64 and using tag to add images to the HTML body(I am not adding it as attachment). [htmlString appendFormat: @"
EmptyStack
  • 50,606
  • 20
  • 144
  • 175
6
votes
1 answer

IOS Custom Icon Email Attachment

I registered my own custom CFBundleDocumentTypes filetype as described in this link: How do I register a custom filetype in iOS Everything is working fine except when I send a mail via MFMailComposeViewController there is still this plain default…
Martin Kapfhammer
  • 260
  • 1
  • 4
  • 18
5
votes
1 answer

How to create a UITextField like MFMailComposer has?

I want to create a MFMailComposer like UITextField like when we type an email address it converted into blue round button like shape. I do not want to use Three20's MailComposer. I want to create my own.Any idea how to achieve this? or if there is…
Rahul Vyas
  • 26,593
  • 48
  • 175
  • 252
5
votes
1 answer

MailComposer didFinishWith results doesn't work in Swift 3.0

I converted my app to swift 3.0 and have a problem with MailComposeController. When I call function: `func mailComposeController(_ controller: MFMailComposeViewController, didFinishWith result: MFMailComposeResult, error: Error?){ …
PiterPan
  • 1,480
  • 1
  • 15
  • 39
5
votes
3 answers

SWIFT - mailComposeDelegate not called : cancel of MFMailComposeViewController doesn't work

On the same viewcontroller, we can send an email or a text message to send an information to a friend. The text message in app fully works. But for the email, the email app opens inside my app with all the informations I asked to write but it's…
5
votes
1 answer

Saving array into text file and attaching to email in swift

I have been pulling my hair out lately trying to create a .txt file into an email. I have a variable which is a list of strings that I want to write to a txt file, and then add as an attachment to an email. I have not been able to find any decent…
user2913654
  • 123
  • 1
  • 9
5
votes
1 answer

Cancel button does nothing in MFMailComposeViewController - iOS 8

I've created an MFMailComposeViewController and am able to display it but once I press the cancel button, the cancel button and send button grey out and the action sheet does not appear. Is there anything I am missing? MFMailComposeViewController *m…
Milo
  • 4,791
  • 6
  • 29
  • 58
1
2 3
11 12