Platforms to show: All Mac Windows Linux Cross-Platform
Back to MFMailComposeViewControllerMBS class.
MFMailComposeViewControllerMBS.addAttachmentData(attachment as MemoryBlock, mimeType as String, fileName as String)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Messages | MBS iOS Plugin | 24.2 | ❌ No | ❌ No | ❌ No | ✅ Yes | iOS only |
attachment: The data to attach. Typically, this is the contents of a file that you want to include. This parameter must not be nil.
mimeType: The MIME type of the specified data. (For example, the MIME type for a JPEG image is image/jpeg.) For a list of valid MIME types, see http://www.iana.org/assignments/media-types/. This parameter is set to "application/octet-stream" if passed empty.
filename: The preferred filename to associate with the data. This is the default name applied to the file when it is transferred to its destination. Any path separator (/) characters in the filename are converted to underscore (_) characters prior to transmission.
This method attaches the specified data after the message body, but before the user’s signature. You may attach multiple files (using different file names), but must do so prior to displaying the mail composition interface. Don’t call this method after presenting the interface to the user.
MFMailComposeViewControllerMBS.Constructor
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Messages | MBS iOS Plugin | 24.2 | ❌ No | ❌ No | ❌ No | ✅ Yes | iOS only |
MFMailComposeViewControllerMBS.Destructor
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Messages | MBS iOS Plugin | 24.2 | ❌ No | ❌ No | ❌ No | ✅ Yes | iOS only |
MFMailComposeViewControllerMBS.Dismiss
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Messages | MBS iOS Plugin | 24.2 | ❌ No | ❌ No | ❌ No | ✅ Yes | iOS only |
MFMailComposeViewControllerMBS.Present
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Messages | MBS iOS Plugin | 24.2 | ❌ No | ❌ No | ❌ No | ✅ Yes | iOS only |
MFMailComposeViewControllerMBS.setBccRecipients(bccRecipients() as String)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Messages | MBS iOS Plugin | 24.2 | ❌ No | ❌ No | ❌ No | ✅ Yes | iOS only |
bccRecipients: An array of strings, each containing the email address of a single recipient.
This method replaces the previous blind carbon-copy (Bcc) recipients with the new ones listed in the bccRecipients parameter. This method doesn’t filter out duplicate email addresses, so if duplicates are present, the recipient may receive multiple copies of the email message.
Only call this method before you display the mail composition interface. Don’t call it after presenting the interface to the user.
MFMailComposeViewControllerMBS.setCcRecipients(ccRecipients() as String)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Messages | MBS iOS Plugin | 24.2 | ❌ No | ❌ No | ❌ No | ✅ Yes | iOS only |
ccRecipients: An array of strings, each containing the email address of a single recipient.
This method replaces the previous carbon-copy (Cc) recipients with the new ones listed in the ccRecipients parameter. This method doesn’t filter out duplicate email addresses, so if duplicates are present, multiple copies of the email message may be sent to the same address.
Only call this method before you display the mail composition interface. Don’t call it after presenting the interface to the user.
MFMailComposeViewControllerMBS.setMessageBody(body as String, isHTML as Boolean)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Messages | MBS iOS Plugin | 24.2 | ❌ No | ❌ No | ❌ No | ✅ Yes | iOS only |
body: The initial body text of the message. The text is interpreted as either plain text or HTML, depending on the value of the isHTML parameter.
isHTML: Specify true if the body parameter contains HTML content or specify false if it contains plain text.
This method replaces the previous body content with the new content. If the user has a signature file, the body content is inserted immediately before the signature. If you want to include images with your content, you must attach the images separately using the addAttachmentData method.
Only call this method before you display the mail composition interface. Don’t call it after presenting the interface to the user.
Some examples using this method:
MFMailComposeViewControllerMBS.setToRecipients(toRecipients() as String)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Messages | MBS iOS Plugin | 24.2 | ❌ No | ❌ No | ❌ No | ✅ Yes | iOS only |
toRecipients: An array of strings, each containing the email address of a single recipient.
This method replaces the previous recipients with the new ones listed in the toRecipients parameter. This method doesn’t filter out duplicate email addresses, so if duplicates are present, multiple copies of the email message may be sent to the same address.
Only call this method before you display the mail composition interface. Don’t call it after presenting the interface to the user.
The items on this page are in the following plugins: MBS iOS Plugin.
