Sending emails in the background in the Ionic2 app - email

I have to send email with user's location within set period of time. I was using Background Geolocation plugin and it's working fine (sending it to the local host). The better way is to send the data with email - it's easier to parse the data and it's more universal and common. I have to send the data to hardcoded email without opening other apps. Is there any way to do it? Maybe using Gmail API?

Related

Send Email Without Showing Compose UI In iOS 7

I have an in-house app that is used by employees. I need functionality included in the app so that an email can be sent to a group email address in an emergency. For this I do not want to have to show the UI and then have to require the user to press send to actually send the email. I am trying to send a pre-written email that sends when a PIN is entered correctly.
I have seen and tried to implement SKPSMTPMessage but this does not seem to work in iOS 7.
If I send the email to an smtp service via a web service I can make this work but if there's an easier way within objective c then I would like to use that way.
Is it possible to send an email in the background in iOS 7+ in the above scenario?

How to get webcam pics to our site from a Astak Mole via email

Basically we have an Astak Mole cam that can email images at regular intervals and we want to put the images in a folder and post it on the site.
Is there a way to use IFTTT.com
We can control the email address that receives the message and the server that will display the image.
Got any ideas?
I'm not sure about IFTTT.com but there are many ways to programatically get emails to a web server.
I wrote a blog post with the three main methods for programmatically accessing email. These are namely:
Setup an email server and have it run a script locally when an email arrives
Poll over POP3 or IMAP to an existing email mailbox and then download the messages
Use a third party (such as CloudMailin) that takes an email and forwards it as an HTTP Post to your website.
Any of these methods should allow you to do what you're asking, the option to choose is really about how much you need to scale or what you have available already.

Sending an email automatically through my iPhone App

I am new to iPhone app development. I have a form that the user can fill out to request additional information about my product. I would like the app to automatically send out the email without launching UI.
I have looked through several posts that have recommended using ASIHTTPRequest to "Post" data. However most of the posts are dated back to 2009. My question is that using Xcode 4 is there another way of accomplishing the same thing without using ASIHTTPRequest?
Thanks
T!
If you want to send emails without the standard mail composer you have to
ask the user for his email address
implement SMTP. And SMTP is more complex than a simple POST to http.
Alternatively you could set up a script on a web server to which you send the mail address you got from the user.

automatic background email from iphone application to users

I am so confused. My simple requirement is: i have an application which contains confirmation form i.e. nib file. It contains some textFields like name, age, email etc. I simply want when somebody click on submit button application send background and automatic email to email defined in textField. that email contain all information like name, age etc. User need not to fil anything and it should work in background. There are so many application do the same thing. I am creating booking application.
So how can i impliment this behaviour.
Apple does not provide a way to do this - and for good reason. Sending emails from the phone automatically introduces a lot of security risks.
I am willing to bet that the apps that do this use an intermediary server to which they post the data. When the data is posted then the server handles the sending of the emails.
To do this:
Send an HTTPS POST request to your server application.
From your server application, send an email via SMTP (or APIs built on top of SMTP).
Google AppEngine provides a simple and cheap way to create such a web service, running on top of Google's cloud-computing infrastructure. The sending mail from AppEngine help document includes detailed examples of how to send mail from your server application (assuming you use the Python version of Google AppEngine).
Unfortunately, there is no official feature for this but you could download a third-party library. Refer here for a couple of suggestions.

Sending mail regularly

I have an application that collects the report on usage and stores it into the core data model. The application has to send mail every hour to the client despite of the application running or not. I have created a java servlet that runs on google app engine to send email every hour. But, the mail is sent with all the information collected from the iphone.
So, how is it possible to collect data and send mail frequently ? Or how should be the server model(cron job or database) such that it gives smoother user experience.
I did something like this a while ago, you have to be cunning about it.
You can schedule methods for the iPhone to run, and its meant for VOIP, but you can just claim your app is a voip app and run this in the BG. How to Maintain VOIP socket connection in background?
In that method you can send an email out. You won't be able to do it with user input, obviously, but there is a google project out there for easy sending email. http://code.google.com/p/remail-iphone/