Home / All Integrations / SMTP

Connect SMTP to your chatbot

Send emails with any SMTP provider


Send transactional emails with any SMTP provider!

Description

This app allows you to easily send transactional emails from your chatbot by connecting with any SMTP service provider.

To get started, simply retrieve your SMTP credentials. Please refer to your provider's documentation to find out how to retrieve the credentials. At the very least, you will need the following information:

  • the SMTP server's hostname and port
  • whether it supports or requires TLS
  • the authentication details (username and password)

Usage

Below is a sample code example for sending out a simple text email with an image attachment:

do Fn(
  "utils/smtp",
  from="Joe Bot<chatbot@mydomain.com>",
  to=["someone@gmail.com", "someother@hotmail.com", "Jane User <jane@mydomain.com>"],
  cc=["somecc@yahoo.com"],
  bcc=["somebcc@gmx.de"],
  subject="CSML Chatbot",
  html="<h1>Hi there!</h1><p>This is a demo email.</p>",
  text="Hi there!\nThis is a demo email.",
  attachments=[{ "filename": "picture.jpg", "path": "https://picsum.photos/200" }],
)

Discover similar integrations:

Amazon SES
Sendinblue

Many more integrations are coming!

If you have a cool integration in mind, drop us an email on contact@csml.dev and tell us all about it!

Many of our 55 currently available integrations come directly from your suggestions!

Join the Community
on Slack Slack

Come and learn all about CSML with other chatbot enthusiasts on the Slack CSML Community! ūü§ó