Email

You can send internal emails. Emails will be sent from an app specific address<appID>.mail.shypyard-app.com

Usage example

const { auths, libs } = require('platform');

module.exports = async (event, options) => {
  const shypyard = libs.shypyard.get();
  const email = 'test@gmail.com';

  await shypyard.sendEmail({
    to: [email],
    subject: 'TEST text only EMAIL',
    text: 'This is a test email okay',
    html: '<span>Tihs is a text email okay</span>',
  });
};

Full documentation

Please see the Shypyard SDK documention on shypyard email.

Last updated