Iphone automatically sends mail in the application

There are two ways to send mail in iPhone programming. 1. openURL 2. Incoming mail using the messageUI infrastructure.

Using the second approach - in the application, it will display the view with the address, subject and body of the message. Then it will have the "Submit" and "Cancel" buttons. When you click the send button, a message will be sent, after which it will return to the application.

Now I have a question, is it possible to send mail automatically without showing a view and without clicking the "Send" button?

Because I want to send 10 user messages to 10 different email identifiers one by one. Is it possible or not?

+3
source share
2 answers

You will need to create your own mail agent code to connect to the mail server, and for the user to enter all the necessary account credentials into your application (or have your own account).

+3
source

It's impossible. The message sender interface allows you to allow the user to cancel or send - this means that applications will not spam with the user account.

+2
source

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


All Articles