user1612646
user1612646

Reputation: 69

How to send an email without using a ViewController?

I want to make an app that automatically emails me information put into text fields. I do not want the ViewController to pop up - I just want them to click send and it automatically sends to me. How might I do this?

Upvotes: 0

Views: 127

Answers (1)

DrummerB
DrummerB

Reputation: 40211

I can see two possible solutions to this problem.

  1. Set up a server and send your content via HTTP POST to it. Let the server generate and send the email to you. This could be easily implemented with a simple PHP script for instance.
  2. Send the email from the device via SMTP yourself. Check out the SKPSMPTMessage library.

With that being said, be careful what you send. Don't send user specific information without them knowing and accepting.

Upvotes: 3

Related Questions