4

I know you can send an email out of your app by presenting the user with a MFMailComposeViewController, but can you also send an email without the user having to push any send buttons?

jscs
  • 63,694
  • 13
  • 151
  • 195
Jan Mark Dannenberg
  • 603
  • 1
  • 7
  • 12
  • You can’t send an email from the user without their involvement. You can send an email from your own address using something like [mailgun](https://www.mailgun.com) – Paulw11 Nov 09 '17 at 13:17
  • your question is not much clear! When you exactly want to send mail ? – Ketan Parmar Nov 09 '17 at 13:17
  • No it's not possible with the users configured E-Mail on his phone. But... you can can send a mail from your backend from a general address... – AlexWoe89 Nov 09 '17 at 13:19

2 Answers2

4

The simple answer is "No".

It is against Apple guidelines. You cannot send mail without user interaction (action on send button).

As an alternate option, you can use power of web server/web service. Send information/data to your web service using web service request and can send an email from you web server. (Note: Mail sender id will not be email id of application user.)

You can try this but remember, it's against Apple guidelines and Apple may reject your app.

jscs
  • 63,694
  • 13
  • 151
  • 195
Krunal
  • 77,632
  • 48
  • 245
  • 261
  • Instead of posting an answer with links to duplicates, you should have just voted to close the question as a duplicate. – rmaddy Nov 09 '17 at 15:07
2

It is actually not possible to send an email only using your iOS code without MFMailComposeViewController and user's explicit interaction.

But you could upload the content of your mail to a web service of your own or from a third party and that will send it for you. This way the user will not do anything.

Arnaud
  • 105
  • 6