Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Presents the message composer view.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
MessageComposer | 7.3 | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |
none
Returns OK or error.
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") ]
This function checks for a license.
Created 10th June 2017, last changed 10th June 2017