首页 > 解决方案 > 来自用户的电子邮件

问题描述

我正在开发一个应用程序。我正在做的一件事是从用户那里收到投诉或建议的电子邮件。我实现了下面的代码。当用户点击一个按钮时,这会导致一个 iphone 内置的电子邮件。但是用户可以更改我不想要的“myappemail”和标题。另外,我觉得这在安全方面可能不安全。

所以我的问题是:安全吗?湾。有什么方法可以阻止用户更改电子邮件和标题?C。如果不推荐这种方式,另一种方法可能是使用网站。我有一个使用谷歌套件(免费版)的应用程序网站,但我不确定谷歌套件是否提供这种“从用户那里获取电子邮件”服务。如果没有,公司一般如何处理?是否有任何推荐的网站建设服务提供此类服务。

任何建议都会有所帮助。

谢谢,

    if !MFMailComposeViewController.canSendMail() {
        print("Mail services are not available")
        return
    } else {
    let sendingEmailVC = MFMailComposeViewController()
    sendingEmailVC.mailComposeDelegate = self
     
    // Configure the fields of the interface.
    sendingEmailVC.setToRecipients(["myappemail@myappemail.com"])
    sendingEmailVC.setSubject("my app - \(userFirstName!) \(userLastName!)")
    sendingEmailVC.setMessageBody("", isHTML: false)

    self.present(sendingEmailVC, animated: true, completion: nil)
    }
    
  
    func mailComposeController(controller: MFMailComposeViewController,
        didFinishWithResult result: MFMailComposeResult, error: NSError?) {
        controller.dismiss(animated: true, completion: nil)
    }
    

标签: iosiphoneemailmobile-website

解决方案


推荐阅读