how to send email without showing compose email UI?
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 th开发者_开发知识库is possible? thanks much in advance.
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 Open Source Cocoa/Cocoa-Touch POP3/SMTP library? for example.
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:
I do not think Apple will approve it
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.
精彩评论