Reference
Email Client

Email Client

This email client provides methods that allow users to send emails. The email client is accessible via the email variable.

Example use of email.send
async function sendHelloEmail() {
  // email.send(to: string, subject: string, html: string);
  await email.send("chieze.franklin@gmail.com", "Testing Testing Testing", "Hello World!");
  return { success: true };
}
 
sendHelloEmail().catch(console.log);
⚠️

This is available only to ENTERPRISE and PARTNERSHIP users

Properties

send(to: string, subject: string, html: string)

This method sends a single email message.


sendBatch(to: string[], subject: string, html: string)

This method sends a batch of email messages.


© 2024 ProteusAI. All rights reserved