Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send email without user interaction in iOS App [duplicate]

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?

like image 981
Jan Mark Dannenberg Avatar asked Oct 27 '25 01:10

Jan Mark Dannenberg


1 Answers

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.

  • https://stackoverflow.com/a/5183267/5638630
  • http://iosameer.blogspot.in/2013/01/sending-e-mail-in-background-from-ios_25.html
  • https://stackoverflow.com/a/6287412/5638630
like image 103
Krunal Avatar answered Oct 29 '25 13:10

Krunal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!