Search code examples
iosemailmfmailcomposeviewcontroller

How can I use MFMailComposeViewController for my custom messaging


I need to implement a functionality where I want to allow user to share app content through email, but we need to send the email from server and not using the device configured email.

My question is, is it possible to use MFMailComposeViewController and get the Send button handler without actually allowing the composer to send the email?


Solution

  • I don't think that this behaviour is wanted by apple. I would implement a form and submit this form to the your server and generate a email on your server. I think the amount of time spended to hack the MFMailComposeViewController is more than the time to implement your own email form.