How to send Emails automatically

I’m currently in the process of developing an app and I want to have a process where when the user clicks on a button within the app, an email is automatically sent to an email address. Does anyone know how I could go about coding this?

Which email address? Something already stored somewhere?
Or the user has to enter it?

Typically I believe you MUST pull up the message view controller, or something (basically the one in the native mail app, for a new message)

Otherwise I think you’ll have to use Firebase or some other backend to do the “automatic sending”

try searching for a cocoapod about messaging/email, there might be something you can use that can auto email or at least email programmatically instead of UI