Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS App - Sending mails in background using Swift [duplicate]

I have an app where I have a simple form to collect data, and then want to send an email containing that data to a particular email address.

Ideally, I'd just want this to be transparent to the user -they would just press submit/send, and the email would be automatically created and sent in the background to that email address without the user knowing.

I am getting tutorial on this using objective-C but I want to implement this using Swift.

Is there a recommended way to send email in the background?

like image 717
Sudhir Avatar asked Oct 29 '15 10:10

Sudhir


1 Answers

Apple do not allow you to send emails in the background without user's interaction. The only way you can do this is to use a server to send the email.

like image 186
Swinny89 Avatar answered Nov 03 '22 18:11

Swinny89