简体   繁体   English

iPhone应用程序中的自定义电子邮件表格?

[英]Custom email form in iPhone app?

Say I want to send email to my server, but I want the user to not see my address, or perhaps I want the subject to be preset. 假设我想发送电子邮件到我的服务器,但是我希望用户看不到我的地址,或者我希望预设该主题。 What if I want to email the value of a UISlider or other UI element without the user seeing the whole email view. 如果我想通过电子邮件发送UISlider或其他UI元素的值而不让用户看到整个电子邮件视图,该怎么办。 How can I do that? 我怎样才能做到这一点?

Must I use an Apple class, or can I use my own UITextFields? 我必须使用Apple类,还是可以使用自己的UITextFields?

The benefit of the Apple class is that you get the email address of the user. Apple类的好处是您可以获得用户的电子邮件地址。 If you do not care about that, you can submit anything you want to your own server as POST data or by whatever means you wish. 如果您对此不关心,则可以将所需的任何内容作为POST数据提交给自己的服务器,也可以通过任何方式提交。 The interface can look like mail but the functionality will be like a web form. 该界面看起来像邮件,但功能类似于Web表单。

If you need the address of the user and do not want to ask for it, then you will have to reveal the destination email address. 如果您需要用户的地址并且不想提出要求,那么您将必须显示目标电子邮件地址。 You can specify a subject and body, but the user will be able to modify it. 您可以指定主题和正文,但用户可以对其进行修改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM