Reputation: 15894
In iPhone programming, there are two ways to send mail. 1. openURL 2. In-App mail using messageUI framework.
Using second approach - in-app mail, it will show a view with to address, subject and body of message. Then it will have "Send" and "Cancel" buttons. On click of send button, message will be sent and then it will come back to app.
Now my question is that, is there any possiblity to send mail automatically without showing the view and clicking "send" button?
Because, I want to send 10 custom messages to 10 different email id's one after another. Possible or not?
Upvotes: 3
Views: 3076
Reputation: 15519
This is not possible. The message sender interface forces you to allow the user a cancel or send option - this is to prevent apps spamming with the user's account.
Upvotes: 2
Reputation: 70693
You will have to build-in your own mail agent code to connect to a mail server, and have the user enter all necessary account credentials into your app (or have your own account built-in).
Upvotes: 3