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:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
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") ]
Created 10th June 2017, last changed 10th June 2017
MessageComposer.New - MessageComposer.Result
Feedback: Report problem or ask question.