Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create an Event Process with name 'Gmail_Example'.
  2. Drag the SMTP adapter from the Bridges category in the Micro Service Palette to the Fiorano Orchestrator.


    Figure 1: Adding SMTP component to Gmail_Example Orchestrator
     
  3. Double-click the SMTP adapter to open its Component Property Sheet (CPS).
  4. In the Managed Connection Factory dialog box, click the SMTP Server section to expand the options.


    Figure 2: SMTP component CPS
     
  5. Under SMTP Server section, retain Protocol value 'SMTP' and click Connection Configuration Ellipsis button.


    Figure 3: Navigating to SMTP Connection Configuration
     
  6. In the SmtpConnectionConfiguration dialog box, provide the following details under Component Configuration section to configure SMTP component to connect to the Gmail server:
    1. MailServer IP/Name: smtp.gmail.com
    2. MailServer Port: 465


      Figure 4: Providing Mail Server details
       
    3. In the Additional Properties section, click Add button and provide the following values for Name and Value respectively:
      • mail.smtp.starttls.enable=true
      • mail.smtp.auth=true
      • mail.smtp.ssl.enable=true
      • mail.smtp.ssl.protocols=TLSv1.2

        Image RemovedImage Added
        Figure 5: Adding Additional Properties required for Gmail server

        Note

        Additional properties are optional which varies according to the mail server. Values provided above are pertaining to Gmail server.

  7. Press OK to close the SmtpConnectionConfiguration dialog box and save the connection configuration.
  8. Click the Test button present in the bottom-right part of the Managed Connection Factory panel to ensure successful connection. Click Close to close the Test Connection Configuration dialog box displaying successful connection message.


    Figure 6: Testing SMTP Connection status
     
  9. Under Authentication Details section, click AuthenticationConfiguration Ellipsis button.
  10. In the AuthenticationConfiguration dialog box, select the AuthenticationRequired check box to enter the credentials. In the Username text field that appears, enter the user name in the format <Name>@gmail.com 
  11. Generate app password from https://accounts.google.com/IssuedAuthSubTokens?hide_authsub=1 for 'Mail'
  12. Choose the desired device in App passwords section at Google Account > Security > Signing in to Google.
  13. Use the generated password in the Password text field that appears.


    Figure 7: Providing Authentication details
     
  14. Click OK to close AuthenticationConfiguration dialog box and click Next in Managed Connection Factory dialog box.
  15. In the InteractionConfigurations panel, provide the following values under Sender Information section:
    1. Display Name of the Sender: Name of the sender to be displayed in the mail.
    2. Email ID of the Sender: Valid mail ID with respect to the server details provided in the Managed Connection Factory Panel.

      Info

      The above values get populated in the <From> element of input message.


      Figure 8: Providing Sender information

  16. Click Finish to save the configuration and close the CPS

...

  1. Drag the POP3 adapter from the Bridges category in the ServicePalette to the Fiorano orchestrator.
  2. Double-click the POP3 component to open its CPS.
  3. In the Managed Connection Factory dialog box, retain Protocol value 'POP3' and click Connection Configuration Ellipsis button.


    Figure 9: Navigating to POP3 Connection Configuration
     
  4. In the Pop3ConnectionConfiguration dialog box, provide the following details under Component Configuration section to configure the POP3component to connect to the Gmail server:
    1. MailServerURL: pop.gmail.com
    2. MailServer Port: 99

      Figure 10: Providing Mail Server details

  5. In the Additional Properties section, click Add button and provide the following values for Name and Value respectively:
    1. mail.pop3.starttls.enable=true

    2. mail.pop3.auth=true

    3. mail.pop3.ssl.enable=true

    4. mail.pop3.socketFactory.fallback=false

    5. mail.pop3.socketFactory.port=995

    6. mail.pop3.ssl.protocols=TLSv1.2

    Note

    Additional properties are optional which varies according to the mail server. Values provided above are pertaining to Gmail server.


    Image RemovedImage Added
    Figure 11: Adding Additional Properties required for Gmail server
     

  6. Press OK to close the SmtpConnectionConfiguration dialog box and save the connection configuration.
  7. Click the Test button present in the bottom-right part of the Managed Connection Factory panel to ensure successful connection. Click Close to close the Test Connection Configuration dialog box displaying successful connection message.


    Figure 12: Testing POP3 Connection status
     
  8. In the Managed Connection Factory panel, click Authentication Configuration Ellipsis button.
  9. In the AuthenticationConfiguration dialog box, select the Authentication Required check box to enter the credentials. In the Username text fields that appear, enter the user name in the format <Name>@gmail.com
  10. Generate app password from https://accounts.google.com/IssuedAuthSubTokens?hide_authsub=1 for 'Mail'
  11. Choose the desired device in App passwords section at Google Account > Security > Signing in to Google.
  12. Use the generated password in the Password text field that appear.


    Figure 13: Providing Authentication details
     
  13. Click OK to close AuthenticationConfiguration dialog box and click Next in Managed Connection Factory dialog box.
  14. In the Interaction Configurations panel, select Operation Name 'recvMail' to retrieve the details in the mail and pass to output port, and click Next.


    Figure 14: Selecting Operation Name 'recvMail' to retrieve the Mail details
     
  15. In the Scheduler Configurations panel. Select Enable Scheduling checkbox to configure scheduling with the default repeat interval of 10 seconds to start checking for mail every 10 seconds after launching the EP.


    Figure 15: Enabling Scheduling
     
  16. Go to Input Message tab, select Use Specified Input checkbox and click the Generate Sample button. In the sample generated, change the MessageCount value to '1' to specify limit the number of mails that needs to be read from the mail server to one.


    Figure 16: Changing message count to '1' in the sample generated
     
  17. Click Finish to save the configuration and close the CPS.

...

Adaptavist ThemeBuilder EngineAtlassian Confluence