Home / All Integrations / SMTP

free

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 App(
  "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

Join the Community
on Slack Slack

Come and learn all about CSML with other chatbot enthusiasts on the CSML Community Slack! 🤗