如何在不显示撰写电子邮件用户界面的情况下发送电子邮件? [英] how to send email without showing compose email UI?

查看:74
本文介绍了如何在不显示撰写电子邮件用户界面的情况下发送电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个程序,以从设备上的相册中获取图片,并将其作为附件自动发送到电子邮件地址.我想要执行此操作而不显示MFMailComposeViewController UI(典型的iPhone发送电子邮件撰写窗口). 这可能吗?在此先感谢.

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.

推荐答案

最好将图像作为附件包括在内,并显示撰写控制器.它还使用户可以最终决定发送谁和发送什么.

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.

但是您始终可以构造SMTP邮件.参见开源Cocoa/Cocoa-Touch POP3/SMTP库吗?例如.

But you can always construct an SMTP message. See Open Source Cocoa/Cocoa-Touch POP3/SMTP library? for example.

这篇关于如何在不显示撰写电子邮件用户界面的情况下发送电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆