MessageComposer.New
-------------------

Initializes the message composer panel.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [MessageComposer](component_MessageComposer.md) | [7.3](newinversion73.md) | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "MessageComposer.New" ) ### Parameters

none

### Result

Returns OK or error.

### Description

Initializes the message composer panel.  
Resets last error and clears last message content.  
There is only one message composer at all times, so starting a new one will clear last one.  
### Examples

Starts a new message:

 Set Variable \[ $r ; Value: MBS ( "MessageComposer.New" ) \]   
Set Variable \[ $r ; Value: MBS ( "[MessageComposer.SetSubject](MessageComposerSetSubject.md)"; PlaceHolder::Subject ) \]  
### See also

- [MessageComposer.Present](MessageComposerPresent.md)
- [MessageComposer.Result](MessageComposerResult.md)
- [MessageComposer.SetSubject](MessageComposerSetSubject.md)

### Example Databases

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

This function checks for a license.

Created 10th June 2017 , last changed 11st June 2017

  
[MessageComposer.IsPresented](MessageComposerIsPresented.md) - [MessageComposer.Present](MessageComposerPresent.md)

[HTML Version](MessageComposerNew.shtml)