从iOS应用程序发送电子邮件,而无需使用MFMailCompose UI [英] Send an email from iOS application without using MFMailCompose UI

查看:283
本文介绍了从iOS应用程序发送电子邮件,而无需使用MFMailCompose UI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过iOS应用程序发送电子邮件,而无需使用MFMailCompose UI.

我需要发送带有小型(1.5mb)视频但使用自定义UI的电子邮件.这不是最终要在应用商店中使用的应用,因为它将处于信息亭环境中.这样我就可以使用私有API.

我无法使用MFMailCompose的原因是多方面的.

1)用户界面的可定制性不足以满足我的特定需求.

2)当您点击EmailTo字段并开始输入时,它将填充先前输入的电子邮件地址或联系人列表中的电子邮件地址. (如图_1所示).我需要摆脱此功能.

3)您还可以通过点击文本字段末尾的加号按钮",从联系人列表中添加其他电子邮件,这将再次向您显示您的联系人列表.(如图2所示).我也需要摆脱此功能.

但是,我仍然想使用MFMailCompose提供的附加视频功能,并且我不想使用Web服务来执行此操作,因为将这些视频上传到其他服务器上可能是许多用户的隐私问题./p>

有没有可用于存档的私有ios API.在不使用UI的情况下使用MFMailCompose功能.

任何帮助都非常有用.

图_1:

图_2:

解决方案

您可以使用SKPSMTPMessage,尽管它不是私有的. Git Hub .就视频而言,我希望这个问题可以帮助

Is there a way to send an email from iOS application without using MFMailCompose UI.

I need to send an email with a small (1.5mb) video but using a custom UI. This is not an app that is going to end up in app store because it's going to be in a kiosk environment. So I can use private APIs.

The reason that I cannot use MFMailCompose is multi-part.

1) UI is not customisable enough for my specific needs.

2) When you tap on EmailTo field and start typing it populates previously entered email addresses or email addresses in contacts list. (Shown in Figure_1). I need to get rid of this functionality.

3) You can also add additional emails from your contact list by tapping 'Plus Button' at the end of the TextField which will again show you your contact list.(Shown in Figure_2). I need to get rid of this functionality too.

But still, I would want to use the attaching video functionality that MFMailCompose provides and I don't want to use a web service to do this, as uploading these video onto some other servers maybe a privacy concern for many users.

Is there any private ios APIs that I can use to archive this. Use MFMailCompose functionality without the UI.

Any help is greatly appriciated.

Figure_1 :

Figure_2 :

解决方案

You can use SKPSMTPMessage, it's not private though. Git Hub. As far as video is concerned i hope this question can help

这篇关于从iOS应用程序发送电子邮件,而无需使用MFMailCompose UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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