Send email without user interaction in iOS App

7.1k Views Asked by At

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?

2

There are 2 best solutions below

1
Krunal On BEST ANSWER

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.

0
Arnaud On

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.