Skip to content

Updating visuals

If you see any images containing outdated UI, please bear with us.

We are updating all content as quickly as possible to mirror our new UI.

Return

Send email using WeWeb

Use the backend `Send Email` action in an API Endpoint to send a simple email from your app.

TEMPLATE AVAILABLE

If you wish to skip the manual setup, there is a workflow template available called Send Notification Email. You can find it inside the templates available when creating an API workflow.

Steps at a glance ​

  1. Create an API Endpoint for your email flow.
  2. Configure the backend Send Email action.
  3. Call the API from the Interface.
  4. Test it.

1) Create the API Endpoint ​

  1. Open Data & API → API Endpoints.
  2. Create a new endpoint.

2) Configure the email action ​

Inside the API Endpoint:

  1. Add the backend Send Email action if you did not start from the template.
  2. Set the recipient, subject, and content.
  3. Choose whether you want text content, HTML content, or both.
  4. Return a success response so your interface can react when the email is sent.

3) Call the API from the interface ​

  1. In the Interface, add a button or form submit workflow.
  2. Call your email API endpoint.
  3. Pass the values it needs, such as:
    • Recipient email
    • Subject
    • Message

4) Test it ​

  1. Run the interface workflow in preview.
  2. Confirm the API succeeds.
  3. Confirm the email arrives.

Common pitfalls ​

The email sends from the wrong flow ​

  • Use the backend Send Email action inside an API Endpoint.
  • Do not use the old WeWeb Email plugin for this guide.

The email does not arrive ​

  • Check the API response first.
  • Then check the recipient address and spam folder.