Go Back
Email Microservice Helper Example
Publisher
: Lingk Inc
Run In Lingk
Description
This recipe sends text-based notification emails. While you can send multiple notifications at once, this recipe is NOT designed for marketing purposes. Please contact Lingk support for marketing solutions. To use this recipe, click Run!
Browse the knowledge base
Twitter
E-Mail
# _____ _ _____ __ # | __ \ (_) |_ _| / _| # | |__) |___ ___ _ _ __ ___ | | _ __ | |_ ___ # | _ // _ \/ __| | '_ \ / _ \ | | | '_ \| _/ _ \ # | | \ \ __/ (__| | |_) | __/ _| |_| | | | || (_) | # |_| \_\___|\___|_| .__/ \___| |_____|_| |_|_| \___/ # | | # |_| # Project Name - EMAIL MICROSERVICE HELPER EXAMPLE # Recipe URL - https://app.lingk.io/a/10932/tf/17817 # Description - # This recipe sends text-based notification emails. # While you can send multiple notifications at once, this recipe is NOT designed for marketing purposes. # Please contact Lingk support for marketing solutions. # To use this recipe, click Run! # Industry - Higher Ed # Business Process - Graduate Reporting # Systems - Lingk # Connectors - HTTP # Data Flows - Single Direction # Connection Type - API # Add Recipe notes / Change log information here! # _____ _ # / ____| | | # | | ___ _ __ _ __ ___ ___| |_ ___ _ __ ___ # | | / _ \| '_ \| '_ \ / _ \/ __| __/ _ \| '__/ __| # | |___| (_) | | | | | | | __/ (__| || (_) | | \__ \ # \_____\___/|_| |_|_| |_|\___|\___|\__\___/|_| |___/ # # CONNECTORS specify what data will be pulled into the in-memory database during processing connectors: # Configure HTTP credentials in your Environment before running this recipe # HTTP Setup - https://help.lingk.io/en/articles/304-http-connector-setup-guide ###### Start - HTTP Reader connectors ###### # Send Email Helper Service - name: sendNotificationWithPersonalization type: HTTPReader parameterizedBy: recipients properties: headersJson: | { "Content-Type":"application/json" } url: https://sendemail.lingkcloud.com/api/v1/sendemail httpMethod: POST body: | { "to":"dale+recipelib@lingk.io", "from":{ "name": "RecipeLib Notification" }, "subject":"Recipe Library: New Updates", "body": { "text": "{{config.text}}" } } text: "{{var.name}} \\n\\nCheck out the latest recipes on the Recipe Library!\\n{{var.link}}.\\n\\nThanks,\\nThe Lingk Team" # This double-escaping is not needed if the message is directly in the text # Send Email Helper Service - name: sendNotification type: HTTPReader parameterizedBy: recipients properties: headersJson: | { "Content-Type":"application/json" } url: https://sendemail.lingkcloud.com/api/v1/sendemail httpMethod: POST body: | { "to":"dale+recipelib@lingk.io", "from":{ "name": "RecipeLib Notification" }, "subject":"Recipe Library: New Updates", "body": { "text": "Check out the latest recipes on the Recipe Library!\nhttps://recipelib.lingk.io.\n\nThanks,\nThe Lingk Team" } } ###### End - HTTP Reader connectors ###### # _____ _ _ _ # / ____| | | | | | # | (___ | |_ __ _| |_ ___ _ __ ___ ___ _ __ | |_ ___ # \___ \| __/ _` | __/ _ \ '_ ` _ \ / _ \ '_ \| __/ __| # ____) | || (_| | || __/ | | | | | __/ | | | |_\__ \ # |_____/ \__\__,_|\__\___|_| |_| |_|\___|_| |_|\__|___/ # STATEMENTS specify how the data should be processed while in memory statements: #******************************************************************** D I S C L A I M E R *********************************************************************************************** # * # Note that in an effort to keep recipes optimized for DPH (Data Processing Hours), print statements should be commented out after development has concluded for a recipe. * # For more information on DPH optimization, please visit the following help article - https://help.lingk.io/en/articles/212-minimizing-data-processing-hours-on-the-lingk-platform * # * #******************************************************************** D I S C L A I M E R *********************************************************************************************** # NOTE: You can add trasformations into your - statement: | (recipients) => SELECT "John" name, "https://recipelib.lingk.io" link #- statement: print recipients - statement: refresh sendNotificationWithPersonalization #- statement: print sendNotificationWithPersonalization - statement: refresh sendNotification #- statement: print sendNotification # Add more statements to convert, join, aggregrate, transform, and integrate your data
XML to JSON Conversion Microservice Helper Example
XML to JSON Helper Service