How to send mail from iphone app without showing MFMailComposeViewController?
Sending emails programmatically, without user intervention, from an iphone application, cannot be implemented using any of the Apple frameworks. It could be possible in a jailbroken phone but then it would never see the inside of App Store.
If you want control of email sending, then a better way would be to set up a web service (at your server end) you can post to using an HTTP request. If you are posting to only one address this can work very well, although you may want to get the user to input their return mail address.
Otherwise only the standard dialog is available (this relies on using whatever account they've setup on the device).
Send email without user interaction in iOS App
The simple answer is "No".
It is against Apple guidelines. You cannot send mail without user interaction (action on send button).
As an alternate option, you can use power of web server/web service. Send information/data to your web service using web service request and can send an email from you web server. (Note: Mail sender id will not be email id of application user.)
You can try this but remember, it's against Apple guidelines and Apple may reject your app.
- https://stackoverflow.com/a/5183267/5638630
- http://iosameer.blogspot.in/2013/01/sending-e-mail-in-background-from-ios_25.html
- https://stackoverflow.com/a/6287412/5638630
Send email from iOS app
Send your data to your web server using web service and from there send an e-mail to Receiver/Recipients. Web server can send e-mail without notifying (mobile app) user.
You can setup an account on web server that can send all e-mails from a single account. In your case, sending emails from web server using web service would be best choice.
iOS won't allow to send an e-mail without using
MFMailComposeViewController
.
Is there any way to send an email with ignoring the saved email in mail application in ios device?
You can't do it.
Sending emails programmatically, without user intervention, from an
iOS application, cannot be implemented using any of the Apple
frameworks. It could be possible in a jailbroken phone but then it
would never see the inside of App Store.If you want control of email sending, then a better way would be to
set up a web service (at your server end) you can post to using an
HTTP request. If you are posting to only one address this can work
very well, although you may want to get the user to input their return
mail address.Otherwise only the standard dialog is available (this relies on using
whatever account they've setup on the device).
Source : How to send mail from iphone app without showing MFMailComposeViewController?
You can also check following question-answers :
Alternative ways to send email without UI from ipad or iphone
Send an email from iOS application without using MFMailCompose UI
Related Topics
Ios: How to Make a Shadow for Uiview on 4 Side (Top,Right,Bottom and Left)
How to Create Custom Calendar in React Native
How to Associate File Types With an Iphone Application
How to Export Uiimage Array as a Movie
How to Detect When Someone Shakes an Iphone
How to Symbolicate Crash Log Xcode
Uiscrollview Scrollable Content Size Ambiguity
How to Parse a Json File in Swift
Wkwebview Not Loading Webpage - Renders Blank Screen in Swift
Best Way to Check If Object Is Out of Bounds in Array
How to Force Nslocalizedstring to Use a Specific Language
How to Input Currency Format on a Text Field (From Right to Left) Using Swift
Instantiate and Present a Viewcontroller in Swift