views:

175

answers:

2

I am writing a program to grab picture from the Photo Album on the device and automatically send it as attachment to an email address. I want to do this without displaying the MFMailComposeViewController UI (the typical iphone send email compose Window). Is this possible? thanks much in advance.

+1  A: 

It's better include the image as an attachment and show the compose controller. It also lets the user have the final decision who and what to send.

But you can always construct an SMTP message. See http://stackoverflow.com/questions/740939/open-source-cocoa-cocoa-touch-pop3-smtp-library for example.

KennyTM
A: 

You can do that, but you need to do this passing through a web server. You upload the photo to a web server, along with all metadata, then it sends the email. Of course, the sender of the email will appear as your server, and not the user.

You could also deploy the application with exim4, for example, but:

  1. I do not think Apple will approve it

  2. even if it's apporved, your emails are very likely to be marked as spam, and you cannot use stuff like SPF, as you are going to send emails from thousands of different IPs.