Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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