Component: MailComposer 
------------------------

A dialog for iOS to compose and send an email.

You can add attachments and optionally html content.  
  
See also [MessageComposer](component_MessageComposer.md) functions for creating text messages.  
For Windows, check our [WinSendMail](component_WinSendMail.md) functions and cross-platform us [SendMail](component_SendMail.md) functions to send emails.

| Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|
| [7.3](newinversion73.md "First functions introduced with version 7.3.") | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |

  
| Item | Details |
|:--|:--|
| [MailComposer.AddAttachmentContainer](MailComposerAddAttachmentContainer.md)   Adds an attachment to the email based on a container field. | iOS   7.3 |
| [MailComposer.AddAttachmentFile](MailComposerAddAttachmentFile.md)   Adds an attachment to the email based on a file path. | iOS   7.3 |
| [MailComposer.AddAttachmentText](MailComposerAddAttachmentText.md)   Adds an attachment to the email based on a text. | iOS   7.3 |
| [MailComposer.CanSendMail](MailComposerCanSendMail.md)   Whether emails can be send. | iOS   7.3 |
| [MailComposer.Dismiss](MailComposerDismiss.md)   Dismisses the dialog. | iOS   7.3 |
| [MailComposer.Error](MailComposerError.md)   The last error from sending email. | iOS   7.3 |
| [MailComposer.GetBCCRecipients](MailComposerGetBCCRecipients.md)   Queries BCC recipients. | iOS   7.3 |
| [MailComposer.GetCCRecipients](MailComposerGetCCRecipients.md)   Queries CC recipients. | iOS   7.3 |
| [MailComposer.GetEvaluate](MailComposerGetEvaluate.md)   Queries the evaluation to run when email composer is done. | iOS   7.3 |
| [MailComposer.GetFileName](MailComposerGetFileName.md)   Queries the file name of the script to run when email composer is done. | iOS   7.3 |
| [MailComposer.GetMessageBody](MailComposerGetMessageBody.md)   Queries message text. | iOS   7.3 |
| [MailComposer.GetScriptName](MailComposerGetScriptName.md)   Queries the script name of the script to run when email composer is done. | iOS   7.3 |
| [MailComposer.GetSubject](MailComposerGetSubject.md)   Queries subject text. | iOS   7.3 |
| [MailComposer.GetTORecipients](MailComposerGetTORecipients.md)   Queries TO recipients. | iOS   7.3 |
| [MailComposer.IsPresented](MailComposerIsPresented.md)   Checks whether panel is displayed. | iOS   7.3 |
| [MailComposer.New](MailComposerNew.md)   Initializes the mail composer panel. | iOS   7.3 |
| [MailComposer.Present](MailComposerPresent.md)   Presents the email composer view. | iOS   7.3 |
| [MailComposer.Result](MailComposerResult.md)   Queries result of email composer. | iOS   7.3 |
| [MailComposer.SetBCCRecipients](MailComposerSetBCCRecipients.md)   Sets the BCC header for the email message to the specified email addresses. | iOS   7.3 |
| [MailComposer.SetCCRecipients](MailComposerSetCCRecipients.md)   Sets the CC header for the email message to the specified email addresses. | iOS   7.3 |
| [MailComposer.SetEvaluate](MailComposerSetEvaluate.md)   Sets the expression to call when composer is done. | iOS   7.3 |
| [MailComposer.SetMessageBody](MailComposerSetMessageBody.md)   Sets the body of the email message to the specified content. | iOS   7.3 |
| [MailComposer.SetScript](MailComposerSetScript.md)   Sets the script to call when composer is done. | iOS   7.3 |
| [MailComposer.SetSubject](MailComposerSetSubject.md)   Sets the Subject header for the email message. | iOS   7.3 |
| [MailComposer.SetTORecipients](MailComposerSetTORecipients.md)   Sets the To header for the email message to the specified email addresses. | iOS   7.3 |

25 functions shown.

### Release notes

- **Version 7.3**
    - Added [MailComposer](http://www.mbsplugins.eu/component_MailComposer.shtml) functions to send email on iOS with email app, text or html and multiple attachments.

### Blog Entries

- [Useful iOS functions](https://www.mbsplugins.de/archive/2025-04-28/Useful_iOS_functions/monkeybreadsoftware_blog_filemaker)
- [5000 Functions in MBS Plugin](https://www.mbsplugins.de/archive/2017-11-11/5000_Functions_in_MBS_Plugin/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 7.3 - Über 4800 Funktionen in einem Plugin](https://www.mbsplugins.de/archive/2017-07-18/MBS_FileMaker_Plugin_73_-_Übe/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 7.3 - More than 4800 Functions In One Plugin](https://www.mbsplugins.de/archive/2017-07-18/MBS_FileMaker_Plugin_73_-_More/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 7.3pr3](https://www.mbsplugins.de/archive/2017-06-21/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)
- [Social Postings using MBS Plugin in FileMaker iOS SDK app](https://www.mbsplugins.de/archive/2017-06-12/Social_Postings_using_MBS_Plug/monkeybreadsoftware_blog_filemaker)
- [Send emails and messages in FileMaker iOS SDK Apps](https://www.mbsplugins.de/archive/2017-06-10/Send_emails_and_messages_in_Fi/monkeybreadsoftware_blog_filemaker)

### Example Databases

- [iOS/Examples/iOS Email Sending](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/iOS/Examples/iOS%20Email%20Sending.shtml#4ScriptAnchor_)

[HTML Version](component_MailComposer.shtml)