I know you can send an email out of your app by presenting the user with a MFMailComposeViewController, but can you also send an email without the user having to push any send buttons?
Send email without user interaction in iOS App
7.1k Views Asked by Jan Mark Dannenberg At
2
There are 2 best solutions below
0
Arnaud
On
It is actually not possible to send an email only using your iOS code without MFMailComposeViewController and user's explicit interaction.
But you could upload the content of your mail to a web service of your own or from a third party and that will send it for you. This way the user will not do anything.
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in SWIFT
- Navigate after logged in with webservice
- URLSession requesting JSON array from server not working
- When using onDrag in SwiftUI on Mac how can I detect when the dragged object has been released anywhere?
- Protect OpenAI key using Firebase function
- How to correct error: "Cannot convert value of type 'MyType.Type' to expected argument type 'Binding<MyType>'"?
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Using @Bindable with a Observable type in SwiftUI
- How to make a scroll view of 9 images in a forEach loop open on image 6 if image 6 is clicked on from a grid?
- Using MTLPixelFormat.rgba16Float results in random round-off errors
- Search and highlight text of current text in PDFKit Swift
- How is passing a function as a parameter related to escaping autoclosure?
- Actionable notification api call not working in background
- Custom layout occupies all horizontal space
- Is it possible to fix slow CKAsset loading on Cloudkit?
- Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value - MapView.isMyLocationEnabled
Related Questions in EMAIL
- Email Verification python eror
- Invalid format for email address in WordPress on Azure app service
- How to create an JSOUP element from byte array image (Load from Database)
- How can I look this email address
- Gsheet - Automatically send an email using a date & time in a Cell
- Install Postfix Mail Server
- Error 553 5.7.2 [TSS09] When Sending Emails to Yahoo and Outlook
- How to make my form send the submitted info to my email
- Cpanel filter encoding utf-8?
- Thunderbird Importing Emails imports 0 emails
- Python & Django web app - auto emails not sending
- Allowing any member of a dynamic group to send as from a shared mailbox
- How to fix "search in state AUTH" errror
- Rewriting CSS in MSO conditional comment doesn't work
- Sendgrid attachments in C#
Related Questions in MFMAILCOMPOSEVIEWCONTROLLER
- iOS MFMailComposeViewController sent mail but not received
- MFMessageComposeViewController cancel button not working
- Attaching but not embedding image in email using MFMailComposeViewController
- Trying to email photo attachment without edit screen
- can't send an email with MFMailComposeViewController
- Get list of "From" in MFMailCompose
- MFMailComposeViewController canSendMail returns false if the email account was added via a profile (like MDM)
- MFMailComposeViewController not dismiss with Cancel button
- MFMailComposeViewController refuse to dismiss
- MFMailComposeViewController init no arguments
- MFMailComposeViewController does not work in production
- Customize mail content for UIActivityViewController
- MFMailComposeViewController shows up with blank fields
- MFMailComposeViewController: issues with UITextField and UIAlertController after dismissal
- New line in emailBody not working in swift
Related Questions in MFMAILCOMPOSER
- Can't dismiss mail composer using dismiss(animated: true, completion: nil) and dismissViewControllerAnimated doesn't come up as an option
- Find string in messageBody of MFMailComposeViewController
- How to automatically attach device information to new email with MFMailComposeViewController
- Swift MFMailComposer Optional Tag
- MFMailComposeViewController back and send button not working
- Add a photo to MailComposer Swift
- MFMailComposeViewController navigation bar not show some time
- Sending emails using external apps other than Apple Mail app
- NSKeyedUnarchiver results in nil values after transfer via MFMailComposeController
- Dismissing modal view controller after sending email with MFMailComposeViewController
- MFMailComposeViewController in UIActivityViewController has default blue tint colour
- iOS: MFMailComposeViewController not getting closed
- Send email without user interaction in iOS App
- Text file appear as a small box in mail body in ios objective c
- Swift: Is it possible to save last recipient after sending e-mail?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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.