Skip to main content

com.sabre.redapp.example.cf.email Sample

The com.sabre.redapp.example.cf.email sample demonstrates how to build e-mails to be sent by E-Mail Composer using EmailService.

The following describes the files that this sample includes:

  • Activator.java gets an Activator instance and obtains a ISRWCommunication instance.

  • EmailServiceEditor.java creates a GUI with e-mail’s fields like: from, to, body. subject and send button. It allows to compose a message and open in E-Mail Composer.

  • EmailServiceEditorInput.java accepts input in the editor.

  • The redapp.xml requests authorization to use the com.sabre.edge.platform.optional.agenttask.email.EmailService service.

Running the Sample

  1. In Eclipse, import the com.sabre.redapp.example.cf.email plug-in into your workspace and add it to your run configuration.

  2. Launch Sabre Red 360 from your run configuration, and log in with your CERT Sabre ID.

  3. From the Tools > Other menu in Sabre Red 360, choose Email Service Editor.

  4. Fill the fields: From, To, Subject, Body and click Send button.

  5. E-Mail Composer will appear with populated fields.