Posted On: Nov 19, 2018
Today, Amazon WorkMail announced that you can use outbound mail rules to trigger Lambda functions. With the power of Lambda, you can use these functions to perform analytics on communication within your organization, log audit trails of messages sent, or even gain insights into the sentiment or other communication patterns of your organization. You can also trigger additional, custom actions according to the email being sent. For example, you can use a Lambda function to notify email recipients about an urgent email through additional communication channels like Amazon Chime or text message.
To get started, first create a Lambda function using the AWS Lambda console. For example, a function that records metrics or triggers additional actions. Then, go to the Amazon WorkMail console to select the Lambda action in your organization's outbound mail flow rules settings. You can optionally specify which sender and receiver the rule should apply to. Now, when an email is sent from your Amazon WorkMail organization, Amazon WorkMail will pass the recipients and subject text to your Lambda function. To get you up and running even more quickly with Lambda for WorkMail, try starting with the WorkMail Hello World function from the Serverless Application Repository. This template function shows you how to publish metrics to CloudWatch whenever an email is sent. Alternatively, you can start a Lambda function from scratch to create custom functionality in a programming language of your choice. Finally, you can even publish your own Lambda functions through the Serverless Application Repository for other Amazon WorkMail customers to use.
Lambda for WorkMail is available today in all AWS Regions where Amazon WorkMail is offered. See Configuring AWS Lambda on WorkMail to try it now. To learn more about Amazon WorkMail, or to start your trial, please visit Amazon WorkMail.