IOS app - sending emails in the background using Swift

I have an application where I have a simple form for collecting data, and then you want to send an email containing this data to a specific email address.

Ideally, I would just like it to be transparent to the user - they just click submit / send and the email will be automatically created and sent in the background to this email address without knowing the user.

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

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

+5
source share
2 answers

Apple does not allow sending emails in the background without user interaction. The only way to do this is to use a server to send email.

+7
source

You cannot do this. Apple does not allow sending e-mail in the background. You can set any information about the contents of the receiver, etc., but you also don’t know if the user has changed anything because you cannot access the content through any delegate. Of course, you can use a private API, but then it will be rejected during the review process.

0
source

Source: https://habr.com/ru/post/1234772/


All Articles