SharingService.SetEmailSubject
------------------------------

Sets email subject for next share.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SharingService](component_SharingService.md) | [10.3](newinversion103.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "SharingService.SetEmailSubject"; Subject ) 

**MBS**( **"SharingService.SetEmailSubject";** /\* Sets email subject for next share. \*/  
**$Subject**) /\* The subject to use.e.g. "Hello world" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Subject | The subject to use. | "Hello world" |

### Result

Returns OK or error.

### Description

Sets email subject for next share.  
This is cleared when the [SharingService.ShareItems](SharingServiceShareItems.md) function is called and the recipients passed with the request.  
### Examples

Set Email subject and recipients:

 Set Variable \[ $r ; Value: MBS ( "SharingService.SetEmailSubject"; "Hello World" ) \]  
Set Variable \[ $r ; Value: MBS ( "SharingService.SetEmailSubject"; "test@tester.test¶other@other.test") \]  
### See also

- [SharingService.GetEmailSubject](SharingServiceGetEmailSubject.md)
- [SharingService.SetEmailRecipients](SharingServiceSetEmailRecipients.md)
- [SharingService.ShareItems](SharingServiceShareItems.md)
- [SharingService.ShareValues](SharingServiceShareValues.md)

### Example Databases

- [Mac only/Sharing Services](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/Sharing%20Services.shtml#2ScriptAnchor_)

### Blog Entries

- [Create an email in Apple Mail from FileMaker](https://www.mbsplugins.de/archive/2025-06-02/Create_an_email_in_Apple_Mail_/monkeybreadsoftware_blog_filemaker)
- [What is new in the MBS FileMaker Plugin Version 10.3](https://www.mbsplugins.de/archive/2020-07-31/What_is_new_in_the_MBS_FileMak/monkeybreadsoftware_blog_filemaker)
- [Using Sharing Services in MacOS with FileMaker](https://www.mbsplugins.de/archive/2020-06-29/Using_Sharing_Services_in_MacO/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 27th June 2020 , last changed 25th February 2026

  
[SharingService.SetEmailRecipients](SharingServiceSetEmailRecipients.md) - [SharingService.SetTrigger](SharingServiceSetTrigger.md)

[HTML Version](SharingServiceSetEmailSubject.shtml)