@@ -0,0 +1,762 @@
+const Email = require('./Email')%0A%0Aconst aws = require('../services/AwsService')%0Aconst config = require('../../config.json')%0A%0Amodule.exports.handle = (event, context, callback) =%3E %7B%0A  new Email(getSenderArn()).build(event.recipients, event.userParameters)%0A    .then(function (email) %7B%0A      console.log(%60sending email to '$%7Bevent.recipients.to%7D'%60)%0A      return aws.sendEmail(email)%0A    %7D)%0A    .then(function () %7B%0A      console.log('email successfully sent')%0A    %7D)%0A    .catch(function (error) %7B%0A      console.log('error sending email')%0A      callback(error)%0A    %7D)%0A%7D%0A%0Afunction getSenderArn () %7B%0A  if ('SENDER_ARN' in config && config.SENDER_ARN !== '') %7B%0A    return config.SENDER_ARN%0A  %7D else %7B%0A    throw new Error(%22Please set 'SENDER_ARN' in config.json%22)%0A  %7D%0A%7D%0A

add send lambda