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
0
votes
1 answer

Dismiss MFMailCompose Screen in iOS 9 - Works Fine in iOS 8

I have implemented MFMailComposeViewController in almost all of my previous iOS apps and I never got this issue before. My code works fine in iOS 8 and dismiss email screen immediately but it doesn't do the same in iOS 9. My HTML string is also…
0
votes
1 answer

How do I format email composer in code

I am working on an app that has an email form which holds all the usual contact information. I need to be able to format the email body with that information. I have done it successfully in the Android sister app, but I can't find how to achieve it…
Nick
  • 1
  • 4
0
votes
1 answer

ios sending docx attachments with mfMailComposer fails

I am trying to attach a docx file when sending email but I am having trouble. These 2 lines are always nil. The variables filename and extension are not nil but file comes up as nil. Not sure if this matters but the docx file is dynamically…
Train
  • 3,420
  • 2
  • 29
  • 59
0
votes
1 answer

How to set UserInteractionEnabled to false for recepients in MFMailComposeViewController in swift

I am using MFMailComposeViewController to send feedback from my app. func configuredMailComposeViewController() -> MFMailComposeViewController { let mailComposerVC = MFMailComposeViewController() mailComposerVC.mailComposeDelegate = self…
AAA
  • 1,957
  • 4
  • 23
  • 42
0
votes
0 answers

How to send an Email to limited number of recipients repeatedly?

I have an option to "invite all" in my device contacts email to use my iOS application through MFMailComposeViewController. Its working fine right now. But in my device, i stored 175 email contacts. So it takes time to show those email id's in bcc…
0
votes
1 answer

How to send a mail to more than 2000 recipient in iOS?

I have an option to "invite all" in my device contacts email to use my iOS application through MFMailComposeViewController. Its working fine right now. But i want to know the limitation of recipients can allow in a single mail from Apple. Herewith i…
Muthu Sabarinathan
  • 1,198
  • 2
  • 21
  • 49
0
votes
1 answer

Is it possible to select the logged in email account in MFMailcomposeViewController swift?

My question may be a mere foolishness. MFmailComposeViewController automatically selects the logged in email account in the device as the sender e-mail. I just want to know whether it is possible to select the email account (if there are multiple…
Mohammed Janish
  • 207
  • 4
  • 17
0
votes
1 answer

how can i cause a MFMailComposeResultFailed error

I want to test a certain behaviour I made for when email sending failed, but I can't get MFMailComposeResultFailed error. even when there is no internet connection, it still "sends" the email. how can this be done?
0
votes
2 answers

How do I dismiss mailComposeController when using Document Controller presentOptionsMenuFromBarButtonItem:?

I have implemented (successfully) the mailComposeController:didFinishWithResult:error: method to dismiss the mail compose view in other parts of my app, where the user taps on a particular icon I provide to send email. I understand I had to set the…
0
votes
1 answer

How do I fix this crash? Xcode 6 Swift

I am only coding in two features. MailComposer and WebView. But when I run my app and go to the email interface tab it crashes "fatal error: unexpectedly found nil while unwrapping an Optional value (lldb)". When I go to the tab that displays the…
Phillip
  • 193
  • 10
0
votes
2 answers

Sending email from the iOS sdk

I am trying to send email from within my iOS app. The idea is to have one class SendMessage which all classes use to send email from within the app. It is a subclass of NSObject and is a MFMailComposeViewControllerDelegate This is what the…
Ashish Agarwal
  • 14,555
  • 31
  • 86
  • 125
0
votes
1 answer

MFMailComposeViewController memory management

I created an app in which the user uses the front camera to take pictures and emails them, and the app never goes into background for at least 8 hours; the app is displayed in an office and must be always in foreground. Everything happens in an…
0
votes
0 answers

Unable to attach text file to email

I am trying to generate a text file and attach it to email. Previously I used this code to attach the file to email and it is done successfully. NSString *recipient = @"myemail@me.com"; NSArray *recipients = [NSArray arrayWithObjects:recipient,…
Teja Nandamuri
  • 11,045
  • 6
  • 57
  • 109
0
votes
1 answer

How do I email a pdf using the MFMailComposeViewContoller?

I have a pdf file called FlashCards.pdf MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; NSArray *recipients = @[@"aarone_2010@hotmail.com"]; // Attach an image to the email NSString *path = [[NSBundle mainBundle]…
0
votes
1 answer

iOS Email HTML With BaseURL

I have an HTML embedded in my app, and I want to be able to email it within the app. I have the code below set up, and it will email the text from the Email, but not attach the images embedded with it. I believe this is due to not having the…
user717452
  • 33
  • 14
  • 73
  • 149