Sending email notifications

You can send email notifications from the Application Engine Process Editor to notify you when, for example, a background process finishes.

  1. Select File > New or click New on the toolbar.
  2. Specify this code in the work space:
    #define EngineVersion 5.0
    #define RuntimeVersion 5.0
    
    bool SendEMail(string sender, string receiver, string subject, string content)
    @Description: "Describe your process here";
    @Parameter[sender]: "The sender of the e-mail.";
    @Parameter[receiver]: "The receiver of the e-mail.";
    @Parameter[subject]: "The subject of the e-mail.";
    @Parameter[content]: "The content of the e-mail.";
    @Category: "Place your process category here";
    @Returns: "Place the return value description here";
    
    {
    
        MailServer mailserver = MailerDefineCloudServer();
        MailerSendMail(mailserver,sender,receiver, subject,content);
        
        return true;
    }
  3. Click Test Process on the toolbar.
  4. In the Values section, specify the values of these parameters: sender, receiver, subject, and content.
    These values are shown on the Parameters tab in the pane on the right side.
  5. Click Run on the toolbar.
    The email is sent when the process finishes.