This question already has answers here:
Send an email from my app without using MFMailComposeViewController
(3 answers)
Closed 5 years ago.
Preface: New to coding but have tried to do expensive research without finding anything that I thought would work---so please go easy
I am attempting to create an app that a user will fill out a form of multiple text fields and then when the submit button is touched, it will send the completed fields in an email to one specific email address.
I am stuck at the process of how to send the email with the data entered. I do not want to do this within the app with MFmailcomposer. Can I do this from a back end like firebase for example, or is there a better way to implement---or is this even possible? Hoping someone can at least point me in the right direction, I feel like Ive been stuck for weeks.
Thx
There are services that will send emails for you (like MailChimp). They have an SDK and you'd have to integrate the SDK into your app. Or you could create your own API and call said API through your app and handle the email notifications in your API. Firebase looks like it has custom email options, but only for the Javascript SDK.
Related
I have 2 text fields and a send button in a view for reporting explicit content on my app. I want my app to send me an email if the send button is pressed and it should send the contents of both text fields. Is there some swift tool for sending these in the backend?
I have searched elsewhere for answers, but can't find a recent answer anywhere concerning backend email sending with swift apps.
This question has been asked a few times in different ways, but its been like 4 years since it was last asked and I am wondering if anything has changed.
I am using swift and the most recent version of xcode.
Button action so far:
#IBAction func sendReport(sender: AnyObject) {
let username:String = offendingUserUsername.text!
let reportText:String = reportContent.text!
}
For sending emails from your app you need a Transactional email delivery service.
A great service for that is SendGrid. It is very powerful and easy to implement into your app with this library.
It also has a Free plan that lets you send up to 12k emails per month.
You can find the Free plan here
This question already has answers here:
Sending an automatic Email with Swift and Xcode 6
(3 answers)
Closed 7 years ago.
I have an app where I have a simple form to collect data, and then want to send an email containing that data to a particular email address.
Ideally, I'd just want this to be transparent to the user -they would just press submit/send, and the email would be automatically created and sent in the background to that email address without the user knowing.
I am getting tutorial on this using objective-C but I want to implement this using Swift.
Is there a recommended way to send email in the background?
Apple do not allow you to send emails in the background without user's interaction. The only way you can do this is to use a server to send the email.
There is no way you can do this. Apple doesn't allow sending E-Mails in background. You can set any information about the receiver content and so on, but you also don't know if the user did change anything because you can't access the content through any delegate. Of course you can by the private API but then it would be rejected in the review process.
This question already has an answer here:
How to send in-app announcements to people using my iOS app?
(1 answer)
Closed 7 years ago.
I would like to add a text feed to my iOS app. Basically, it would just be an updatable UITextView or UIScrollView that would display announcements/news (not an actual news or RSS feed though) on the home page. I want to be able to update this field remotely from my computer to give it a set number of messages/announcements to display one after another in a loop. I don't want to have to update the app to manually add them in via Xcode. I only know Objective-C.
How would I do this? I can't seem to find any tutorials for it. Maybe I'm just not searching in the right way. Can someone refer me to a guide or tutorial or even just a GitHub project I could implement? Thanks.
Edit: I see that a similar question has been asked after all, but I still don't understand the answer given. I'm still new to coding apps so I don't know how to use "initWithContentsFromURL." The person clearly knew what they were doing and so they did not get further explanation. Are there any good guides on how to implement this? I understand you would need to set up a website to store the data, but I'm not quite sure how you would do that. An example of the whole process of setting up the website to store this data and then retrieve it with the function would be helpful.
Look at push notification APN, there is a good tutorial for how to implement push notification
If the messages will only be displayed while the user is inside the app, there is no need for push notifications (which will also allow you to contact the user when the app is closed). The app can simply check with a remote server for the most updated content that needs to be displayed whenever the user launches the app (or whenever he/she enters the screen, or once a day - depending on how often you plan to update that info).
This question already has answers here:
Can I send email programmatically in iPhone app?
(8 answers)
Closed 7 years ago.
I would like my app to send an email to my email address from another one of my email addresses. Basically I would like to program it such that it has the username and password for the sending address in the code so that it can compose and send an email without the user having to do anything.
To make it clearer, this would be to place an order that I would receive via email. The user selects all the options they want in the app then once the order is confirmed the app will send all the details to me via email.
I could not find any information on this, even whether or not it's possible. Every time I tried to search I just came up with results about how to open the mail view in your app, which is not at all what I want.
I don't necessarily need all the code, even if you could point me in the direction of a tutorial or something it would be greatly appreciated!
You cannot send an email on behalf of the user without presenting the standard email view.
However, there are a few services that you can use to accomplish your goal. Have a look at Mandrill or Mailgun.
Short answer: not allowed by Apple.
Long answer: not allowed by Apple because this would allow programmers to send emails from a user's device without their knowledge or consent.
This question already has answers here:
How to send mail from iphone app without showing MFMailComposeViewController?
(2 answers)
Closed 9 years ago.
I am trying to implement a "Send Feedback" viewcontroller where the user can automatically push to a viewcontroller and start filling out a form - a form that will then be submitted and composed to a static email address.
I am looking at the facebook app under the send feedback view and that's exactly what I would like to do.
Basically limiting the user from editing the Recipients and only able to edit the subject and body, which I will implement as UITextViews or something along those lines.
I understand there is the already implemented MFMailComposeViewController that presents a preimplemented UIViewController that easily allows the user to enter their subject, body, cc targets as well as recipients, but I would like to step away from another viewcontroller popping up and basically implement my own viewcontroller that the user can press on a UIButton and automatically send their typed in subject and body.
Refer to the facebook iOS version "Send Feedback" page.
If there are any further questions please ask.... I'll edit ASAP.
you can't do it directly but it is possible via web service. you will need to implement SMTP on server side and the server will send an email instead of you.