So it seems like this question iOS - Send an email automatically (NOT from user's account) tackles this in Objective-C but I can't find an answer for Swift.
I am creating an app for the app store so ideally this needs to be compliant with Apple's privacy restrictions (I know they have issues sending emails/texts in the background)-
I need to have an email with a SET message body (As in nothing is editable by the user, its all pre programmed) sent from one of MY email addresses (not accessing the user's at all) to another of MY email addresses (again, pre set).
Ideally I don't want the user to see the email form or even know an email is being sent - when a button is clicked, the button already does 1 thing and I just want the email function to be called along with it. I know Apple doesn't allow email to be transparent to the user if being sent from their email address but as this is from one of my email addresses I can't see why I'd be violating anything.
I have looked but can't figure out how to do this in the BACKGROUND (not pulling up the mail form, etc).
In Swift, How can I send a set email from one of my email addresses to another of my email addresses in the background?