问题标签 [mfmailcomposer]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
315 浏览

ios - 将 nsstring 转换为 pdf 格式然后发送邮件

这里 emailBody 被转换成 pdf 然后发送邮件,在这里我不想编辑任何东西,或者禁用键盘。

0 投票
1 回答
1176 浏览

ios - 不使用 MFMailCompose UI 从 iOS 应用程序发送电子邮件

有没有办法在不使用 MFMailCompose UI 的情况下从 iOS 应用程序发送电子邮件。

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

我不能使用 MFMailCompose 的原因是多部分的。

1) UI 的可定制性不足以满足我的特定需求。

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

3) 您还可以通过点击 TextField 末尾的“加号按钮”从您的联系人列表中添加其他电子邮件,这将再次显示您的联系人列表。(如图 2 所示)。我也需要摆脱这个功能。

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

是否有任何私有 ios API 可用于存档。在没有 UI 的情况下使用 MFMailCompose 功能。

非常感谢任何帮助。

图1 : 在此处输入图像描述

图_2: 在此处输入图像描述

0 投票
3 回答
2211 浏览

ios - MFMailComposeViewController 未在 ios 5 中填充收件人

我正在尝试将邮件发送到我从数据库接收的电子邮件数组列表,当我发送收件人列表时会被填充,iOS 7但当我尝试在iOS 5收件人列表中时不会被填充。任何想法为什么?这是我的邮件功能

我的fList(收件人列表)是一个NSArray,这是我的 fList 的示例输出

0 投票
4 回答
4037 浏览

ios - 未调用 MFMailComposeViewController 委托方法

我有某种操作表 UIView,它在点击其中的按钮后调用 MFMailComposeViewController,MFMailComposeViewController 被调用并成功呈现,但是当我点击取消时它不会关闭,有时会崩溃,我知道这是一个已知问题,但我已经尝试了所有已知的修复方法,但它对我不起作用。那是我的代码:

发送反馈.h:

发送反馈.m:

并调用作曲家: - (void)sendFeedbackComposer { [self.window.rootViewController presentViewController:feedBackComposer animated:YES completion:nil]; }

解雇它:

编辑:所以,这个问题中提供的所有答案都是正确的,这都是我的错。我想要做的是:我有一个UINavigationController包含一个UITableViewcells该视图中应该触发一个操作表,它是UITableView通过将它添加为 asubview,就像前一个一样,这个视图也包括cells并且其中一个将执行动作,它正在调用一个MFMailComposeViewController,即使我设置了它的委托并且所有方法都正确,它也被调用但没有成功解散,问题的原因是调用的方式MFMailComposeController,我首先从超级视图中删除了一点UITableView然后提出了MFMailComposeController,所以当我解雇邮件作曲家时,它甚至没有给出结果就崩溃了,这让我将崩溃的原因与委托方法混淆了,愚弄我。这是代码:

感谢 Stefan Atanasov、Jim 和 Vitaly S。

0 投票
1 回答
122 浏览

ios - 状态栏未显示在 mfmailcomposeviewcontroller 中

我的状态栏有问题。它在其他视图中照常显示,但是当我尝试使用 mfmailcomposeviewcontroller 发送邮件时,它会消失。

我已经尝试了所有方法,但没有任何效果。

我努力了

  1.  

    /li>
  2. 在 viewdidload 和打开邮件编辑器的按钮点击事件中设置状态栏外观。

但没有任何工作。

截屏

0 投票
1 回答
298 浏览

iphone - 在 MFMailComposer 中显示收件人姓名而不是邮件地址

是否可以在收件人字段中显示或显示收件人姓名而不是电子邮件地址。我找到了这个参考,但不明白做了什么。任何人都可以指导以上。有没有办法显示名称而不是电子邮件地址。

0 投票
2 回答
1881 浏览

ios7 - Trouble sending email in iOS 7 using MFMailComposeViewController

I have a very simple app to test sending email, but the email never arrives. I have included the MessageUI framework in the app, and implemented the MFMailComposeViewControllerDelegate as well. The two methods in the app are as follows:

}

and the delegate method:

When I press the email button in my app the first method works perfectly and when I click the send button that is presented, the "Mail Sent" message appears in the log. The email simply never arrives.

Everything seems to work as advertised, with the exception of the email never arriving at its destination.

I am running this on the iPad not in the simulator, and I have a good network connection.

What am I missing?

0 投票
1 回答
302 浏览

ios - MFMailComposer Mail sent callback

I have been working on app that capture images and video and then send it to mail via MFMailComposer. I have created zip file of content and size around 6MB. I want to show loading view when user click on send button and hide mail controller and when mail actually sent i want to show the message via alert. Is there any way to do it? Any help will be appreciated.

0 投票
1 回答
83 浏览

ios - 带有 BaseURL 的 iOS 电子邮件 HTML

我的应用程序中嵌入了一个 HTML,我希望能够在应用程序中通过电子邮件发送它。我设置了以下代码,它将通过电子邮件发送文本,但不附加嵌入其中的图像。我相信这是由于未正确设置 baseURL,但我不确定如何为 emailBody 执行此操作。有什么想法吗?

0 投票
1 回答
73 浏览

ios - 如何使用 MFMailComposeViewContoller 通过电子邮件发送 pdf?

我有一个名为 FlashCards.pdf 的 pdf 文件

正在发送电子邮件,似乎一切正常,但没有发送 PDF 文件。

编辑:

这实际上有效,我在代码的其他部分遇到了其他问题。我的问题解决了。我还确保扩展名是正确的,而不是将 FlashCards 作为文件名,它应该是 FlashCards.pdf 这是我工作的确切代码: