Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
MessageComposer.Present
Presents the message composer view.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
MessageComposer | 7.3 | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |
Parameters
none
Result
Returns OK or error.
Description
Presents the message composer view.This will show the user interface and start the process.
Your script may call this in a script and than wait for the script trigger.
Examples
Send a message with options:
Set Variable [ $r ; Value: MBS( "MessageComposer.CanSendText" ) ]
If [ $r ≠ 1 ]
Show Custom Dialog [ "Can't send emails." ; "This iOS device is not configured to send text messages." ]
Exit Script [ Text Result: "failed" ]
End If
Set Variable [ $r ; Value: MBS( "MessageComposer.New" ) ]
If [ Length ( PlaceHolder::Subject ) > 0 ]
Set Variable [ $r ; Value: MBS( "MessageComposer.SetSubject"; PlaceHolder::Subject ) ]
End If
Set Variable [ $r ; Value: MBS( "MessageComposer.SetScript"; Get(FileName); "Sent") ]
If [ Length ( PlaceHolder::Body ) > 0 ]
Set Variable [ $r ; Value: MBS( "MessageComposer.SetMessageBody"; PlaceHolder::Body) ]
End If
If [ Length ( PlaceHolder::Recipients ) > 0 ]
Set Variable [ $r ; Value: MBS( "MessageComposer.SetRecipients"; PlaceHolder::Recipients) ]
End If
Perform Script [ “AddAttachment” ; Parameter: GetFieldName ( PlaceHolder::Attachment1 ) ]
Perform Script [ “AddAttachment” ; Parameter: GetFieldName ( PlaceHolder::Attachment2 ) ]
Perform Script [ “AddAttachment” ; Parameter: GetFieldName ( PlaceHolder::Attachment3 ) ]
Set Variable [ $r ; Value: MBS( "MessageComposer.Present") ]
See also
- MailComposer.Present
- MessageComposer.CanSendText
- MessageComposer.IsPresented
- MessageComposer.New
- MessageComposer.Result
- MessageComposer.SetMessageBody
- MessageComposer.SetRecipients
- MessageComposer.SetScript
- MessageComposer.SetSubject
- SocialComposer.Present
Example Databases
This function checks for a license.
Created 10th June 2017, last changed 10th June 2017