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

Text file appear as a small box in mail body in ios objective c

I want to send 2 attachments in mail. One is Image and another is text file. But when I send both attachment in single mail, the text file appears as a square blank box. Image and text file, both files are received at receiver side and also…
Deepika
  • 566
  • 2
  • 10
0
votes
1 answer

MFMailComposer not showing UIAlertController

Is there any way to show UIAlertController just after presenting MFMailcomposer? UIAlertView was working fine in this scenario. The problem is i think, view controller is changed now. Any suggestions please.
shini
  • 1
  • 1
0
votes
0 answers

Swift email composer not working

This is my code I call it every time a button is pressed but the problem is that it does not present the view controller but instead give me the message as shown below in the console. func showEmail() { if…
James Lim
  • 83
  • 5
0
votes
2 answers

UIButton does not bring up MFMailViewController

I'm having an error with a bit of code. I am new to this and I am trying to teach myself. I am finding most of my answers online but can't seem to find anything about this particular issue. I want to send an email within the app but anytime I press…
0
votes
1 answer

Exporting Core Data structure to .csv file attached to mail XCODE 8.1 Swift 3

I'm making an app that needs to take a managed object array from core data and export it to a csv file that I plan to attach to an email being sent out using the mfMailComposer system. I have the data properly stored in the core data systems and the…
0
votes
2 answers

MFMailComposeViewController refuse to dismiss

This is driving me nuts. This snippet of code lets the user send an email with an image which is created within the app. Everything works perfectly except the self.dismiss(animated: true, completion: nil) - the MFMailComposeViewController won't…
Mate
  • 99
  • 10
0
votes
1 answer

How to change the From address mail id dynamically using mail composer in iOS

My application has the option to log in with google account. So by using that corresponding login email id, I need to share content through that particular email using MFMailComposeViewController method.
Jananni M
  • 41
  • 6
0
votes
0 answers

Get list of "From" in MFMailCompose

Ideally, I would like to be able to set the "From" field of the MFMailComposeViewController, but it appears this is not possible (to my knowledge) from my digging in through apple documentation (like here) and forums (like here). So, if not…
Rbar
  • 3,740
  • 9
  • 39
  • 69
0
votes
2 answers

Swift: How to determine when an email is sent in order to update table view?

I'm creating an application that allows the user to send a simple email via MFMailComposer. I've already configured that part but i'm trying to figure out, once the email is sent, how do i update the table view showing something like "Email sent"…
Geniouse
  • 189
  • 1
  • 4
  • 15
0
votes
0 answers

MFMailComposeViewController: No previews in mail for PDFs that are attached in iOS10

I've got an app I'm working on that uses mfmailcomposeviewcontroller to create an email with an attached PDF. In iOS 10, I've found that the "preview" of the PDF now shows up as blank: The mail composer used to display as a preview of the PDF in…
0
votes
1 answer

Getting email address from the contact details

Im trying to open the MailComposeViewController from the contacts details using swift. Everything works fine, when I click the contact's email, the page opens, but i would like to populate the recipient email field with the email i just clicked, but…
Nyxx
  • 303
  • 3
  • 13
0
votes
2 answers

MFMailComposeViewController setToRecipients append String from settings textField trouble

Hopefully this is a simple issue? But I just cant seem to get my head around it. I have a text field in my settingsViewController called emailText where I want to set the default email recipient. @IBOutlet weak var emailText: UITextField! override…
0
votes
1 answer

When attaching PNG to MFMailComposer, images auto-rotate to landscape swift

I am making a simple camera app where a user takes an image and then emails it. I have one problem: once the user takes an image (which always works), if it is portrait, the MFMailComposer auto-rotates it to landscape incorrectly, making everything…
owlswipe
  • 19,159
  • 9
  • 37
  • 82
0
votes
1 answer

Incorrect with MFMailComposer Appearance

I'm working on incorporating sMFMailComposer for sending text messages in my app. Below is my code for creating and displaying the message sharing component: - (void)shareWithMessages { if(![MFMessageComposeViewController canSendText]) { …
narner
  • 2,908
  • 3
  • 26
  • 63
0
votes
1 answer

Email formatting doesn't get information from tableView

I'm trying to get my app to send an email containing all the data collected in a View controller here's my code func sendemail() { let formatter = NSDateFormatter() formatter.dateStyle = .MediumStyle formatter.timeStyle = .FullStyle …
Jp4Real
  • 1,982
  • 4
  • 18
  • 33