Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

MBS FileMaker Plugin Example Databases

iOS Email Sending

All examples are included with download of MBS FileMaker Plugin.

iOS Email Sending.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts3
Value Lists0
Custom Functions0
Custom Menus0
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
iOS Email Sending
9 fields defined, 1 record
iOS Email Sending

Fields

Table Name: iOS Email Sending - 9 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
SubjectNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: English
      BodyNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: English
          TORecipientsNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: English
              CCRecipientsNormal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: English
                  BCCRecipientsNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: English
                      Attachment1Normal, BinaryAuto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                          Attachment2Normal, BinaryAuto-Enter:
                          • Allow editing
                          Validation:
                          • Only during data entry
                          Storage:
                          • Repetitions: 1
                              Attachment3Normal, BinaryAuto-Enter:
                              • Allow editing
                              Validation:
                              • Only during data entry
                              Storage:
                              • Repetitions: 1
                                  ResultNormal, TextAuto-Enter:
                                  • Allow editing
                                  Validation:
                                  • Only during data entry
                                  Storage:
                                  • Repetitions: 1
                                  • Indexing: None
                                  • Automatically create indexes as needed
                                  • Index Language: English

                                      Layout Objects: iOS Email Sending

                                      Regular Fields

                                      Field Name: iOS Email Sending::Subject
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 59 pt
                                      • Left: 98 pt
                                      • Bottom: 80 pt
                                      • Right: 316 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: Default for Data Type
                                      • Go to next field using: Tab key
                                      Yes

                                      Field Name: iOS Email Sending::Body
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 82 pt
                                      • Left: 98 pt
                                      • Bottom: 103 pt
                                      • Right: 316 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: Default for Data Type
                                      • Go to next field using: Tab key
                                      Yes

                                      Field Name: iOS Email Sending::TORecipients
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 105 pt
                                      • Left: 98 pt
                                      • Bottom: 126 pt
                                      • Right: 316 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: Default for Data Type
                                      • Go to next field using: Tab key
                                      Yes

                                      Field Name: iOS Email Sending::CCRecipients
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 128 pt
                                      • Left: 98 pt
                                      • Bottom: 149 pt
                                      • Right: 316 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: Default for Data Type
                                      • Go to next field using: Tab key
                                      Yes

                                      Field Name: iOS Email Sending::BCCRecipients
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 151 pt
                                      • Left: 98 pt
                                      • Bottom: 172 pt
                                      • Right: 316 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: Default for Data Type
                                      • Go to next field using: Tab key
                                      Yes

                                      Field Name: iOS Email Sending::Attachment1
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 174 pt
                                      • Left: 98 pt
                                      • Bottom: 299 pt
                                      • Right: 316 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: Default for Data Type
                                      • Go to next field using: Tab key
                                      No

                                      Field Name: iOS Email Sending::Attachment2
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 301 pt
                                      • Left: 98 pt
                                      • Bottom: 426 pt
                                      • Right: 316 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: Default for Data Type
                                      • Go to next field using: Tab key
                                      No

                                      Field Name: iOS Email Sending::Attachment3
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 428 pt
                                      • Left: 98 pt
                                      • Bottom: 553 pt
                                      • Right: 316 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: Default for Data Type
                                      • Go to next field using: Tab key
                                      No

                                      Field Name: iOS Email Sending::Result
                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                      • Top: 555 pt
                                      • Left: 98 pt
                                      • Bottom: 576 pt
                                      • Right: 316 pt
                                      • Anchoring: Left, Top
                                      Field Format:
                                      • Edit Box
                                      Field Behavior:
                                      • Allow field to be entered: In Find mode, In Browse mode
                                      • Touch keyboard type: Default for Data Type
                                      • Go to next field using: Tab key
                                      Yes

                                      Merge Fields

                                      Field PropertiesCoordinatesFieldsQuick Find
                                        Text:
                                      • Installed Plug-ins
                                      • Top: 591 pt
                                      • Left: 6 pt
                                      • Bottom: 687 pt
                                      • Right: 314 pt
                                      • Anchoring: Left and Right, Top
                                        No

                                        Buttons

                                        Button PropertiesCoordinatesScript/Script Step
                                          Type:
                                        • Text: New Record
                                        • Top: 10 pt
                                        • Left: 18 pt
                                        • Bottom: 39 pt
                                        • Right: 126 pt
                                        • Anchoring: Left, Top
                                        New Record/Request

                                        Button PropertiesCoordinatesScript/Script Step
                                          Type:
                                        • Text: Send
                                        • Top: 10 pt
                                        • Left: 194 pt
                                        • Bottom: 39 pt
                                        • Right: 302 pt
                                        • Anchoring: Left, Top
                                        Perform Script [ “Send” ]

                                        Scripts:


                                        Script Hierarchy

                                        Send
                                        AddAttachment
                                        Sent

                                        Next Script: [AddAttachment]
                                        Script NameSend
                                        Run script with full access privilegesOff
                                        Include In MenuYes
                                        Layouts that use this script
                                        Scripts that use this script
                                          Script Definition
                                          Script Steps
                                          • Set Variable [ $r; Value:MBS( "MailComposer.CanSendMail" ) ]
                                          • If [ $r ≠ 1 ]
                                          • Show Custom Dialog [ Title: "Can't send emails."; Message: "This iOS device is not configured to send emails."; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                          • Exit Script [ Result: "failed" ]
                                          • End If
                                          • Set Variable [ $r; Value:MBS( "MailComposer.New" ) ]
                                          • Set Variable [ $r; Value:MBS( "MailComposer.SetSubject"; iOS Email Sending::Subject ) ]
                                          • Set Variable [ $r; Value:MBS( "MailComposer.SetScript"; Get(FileName); "Sent") ]
                                          • If [ Length ( iOS Email Sending::Body ) > 0 ]
                                          • Set Variable [ $r; Value:MBS( "MailComposer.SetMessageBody"; iOS Email Sending::Body; Position ( iOS Email Sending::Body ; "<html>" ; 1 ; 1 ) > 0 ) ]
                                          • End If
                                          • If [ Length ( iOS Email Sending::CCRecipients ) > 0 ]
                                          • Set Variable [ $r; Value:MBS( "MailComposer.SetCCRecipients"; iOS Email Sending::CCRecipients) ]
                                          • End If
                                          • If [ Length ( iOS Email Sending::BCCRecipients ) > 0 ]
                                          • Set Variable [ $r; Value:MBS( "MailComposer.SetBCCRecipients"; iOS Email Sending::BCCRecipients) ]
                                          • End If
                                          • If [ Length ( iOS Email Sending::TORecipients ) > 0 ]
                                          • Set Variable [ $r; Value:MBS( "MailComposer.SetTORecipients"; iOS Email Sending::TORecipients) ]
                                          • End If
                                          • Perform Script [ “AddAttachment”; Parameter: GetFieldName ( iOS Email Sending::Attachment1 ) ]
                                          • Perform Script [ “AddAttachment”; Parameter: GetFieldName ( iOS Email Sending::Attachment2 ) ]
                                          • Perform Script [ “AddAttachment”; Parameter: GetFieldName ( iOS Email Sending::Attachment3 ) ]
                                          • Set Variable [ $r; Value:MBS( "MailComposer.Present") ]
                                          Fields used in this script
                                          Scripts used in this script
                                          Layouts used in this script
                                            Tables used in this script
                                            Table occurrences used by this script
                                            Custom Functions used by this script
                                              Custom menu set used by this script

                                                Previous Script: [Send]Next Script: [Sent]
                                                Script NameAddAttachment
                                                Run script with full access privilegesOff
                                                Include In MenuYes
                                                Layouts that use this script
                                                  Scripts that use this script
                                                  Script Definition
                                                  Script Steps
                                                  • Set Variable [ $FieldName; Value:Get(ScriptParameter) ]
                                                  • Set Variable [ $Container; Value:GetField ( $FieldName) ]
                                                  • If [ IsEmpty ( $container ) = 0 ]
                                                  • Set Variable [ $path; Value:GetAsText ( $Container ) ]
                                                  • Set Variable [ $name; Value:MBS( "Path.LastPathComponent"; $path) ]
                                                  • Set Variable [ $extension; Value:MBS( "Files.FileExtension"; $name ) ]
                                                  • Set Variable [ $mimeType; Value:MBS( "Text.FileExtensionToMimeType"; $extension ) ]
                                                  • Set Variable [ $r; Value:MBS( "MailComposer.AddAttachmentContainer"; $container; $name; $mimeType) ]
                                                  • End If
                                                  Fields used in this script
                                                    Scripts used in this script
                                                      Layouts used in this script
                                                        Tables used in this script
                                                          Table occurrences used by this script
                                                            Custom Functions used by this script
                                                              Custom menu set used by this script

                                                                Previous Script: [AddAttachment]
                                                                Script NameSent
                                                                Run script with full access privilegesOff
                                                                Include In MenuYes
                                                                Layouts that use this script
                                                                  Scripts that use this script
                                                                    Script Definition
                                                                    Script Steps
                                                                    • Set Variable [ $result; Value:MBS( "MailComposer.Result" ) ]
                                                                    • Set Variable [ $error; Value:MBS( "MailComposer.Error" ) ]
                                                                    • Set Field [ iOS Email Sending::Result; $result & ": " & $error ]
                                                                    Fields used in this script
                                                                    Scripts used in this script
                                                                      Layouts used in this script
                                                                        Tables used in this script
                                                                        Table occurrences used by this script
                                                                        Custom Functions used by this script
                                                                          Custom menu set used by this script

                                                                            Download example: iOS Email Sending

                                                                            Used functions: