Chris
Chris

Reputation: 683

How to send an email +attachment w/o showing the composer

I have inherited an app that, when certain conditions are met, will email data to a known server. The way the previous version worked is that the MFMailComposeViewController would slide up and the user could enter add'l info and then hit send. What we really want to do is send an email programmatically, transparently to the user (i.e. no visual representation unless it fails).

Is this possible, or does Apple not like apps to do this?

Thanks for any help.

Upvotes: 0

Views: 2322

Answers (1)

Avis
Avis

Reputation: 505

IOS doesn't support to mail in background.

These are some questions asked previously on same topic.

1.Send Email in Background from iOS

2.How to send an email to a receipent in background in iOS5?

this might be useful to you.

http://iosameer.blogspot.ca/2013/01/sending-e-mail-in-background-from-ios_25.html

one more thing you can do is lock the fields in mail composer view.

Locking the Fields in MFMailComposeViewController

Upvotes: 2

Related Questions