0

我的应用程序上有一个按钮,允许用户发送带有目标地址的电子邮件,并且 BODY 已经填写。我正在这样做.... [[UIApplication sharedApplication] openURL:]; 但是这种方法是在 EDIT 模式下启动 Mail 应用程序。用户可以选择编辑正文和目的地。

我正在寻找一种无需进入编辑模式即可发送电子邮件的方法。我不希望用户在 EMAIL 中编辑任何内容...我只想让他单击“发送电子邮件”按钮,然后发送电子邮件。

这是如何在 iOS 中完成的......另外,这将如何在 ANDROID 中完成?

4

2 回答 2

1

You cant do that. For such a solution, do a HTTP post to your server, and make it forward the info to a email address.

No other solution. This is for both Android and iOS.

于 2012-10-26T14:34:07.457 回答
0

Only way to send an email without allowing the user to edit the contents in iOS would be to send the email via a web based script that you call remotely from the app. Doing so you wouldn't have the users email address to be the 'from' address though, so this also has its limitations.

The iOS SDK does not allow you to send emails automatically from your users account without them pressing the Send button on the compose email screen.

于 2012-10-26T14:34:04.080 回答