当前,我具有以下功能,该功能允许用户按下按钮并允许他们撰写电子邮件:
@IBaction func emailButton(_ sender: Any) {
if MfmailComposeViewController.canSendMail() {
let mail = MfmailComposeViewController()
let device : UIDevice = UIDevice()
let modelName = device.deviceModel
mail.mailComposeDelegate = self
mail.setSubject("Example Subject")
mail.setToRecipients(["example@example"])
mail.setMessageBody("<p>Please provide some information below:</p>
<br><br><br>",isHTML: true)
present(mail,animated: true)
} else {
}
}
我需要在发送电子邮件之前添加以下信息,以便仍将其传递给收件人,但不会显示给用户,以供他们篡改。
是否可以添加添加到邮件正文而不让用户看到?