Appearance
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 ​
- Create an API Endpoint for your email flow.
- Configure the backend
Send Emailaction. - Call the API from the
Interface. - Test it.
1) Create the API Endpoint ​
- Open
Data & API→API Endpoints. - Create a new endpoint.
2) Configure the email action ​
Inside the API Endpoint:
- Add the backend
Send Emailaction if you did not start from the template. - Set the recipient, subject, and content.
- Choose whether you want text content, HTML content, or both.
- Return a success response so your interface can react when the email is sent.
3) Call the API from the interface ​
- In the
Interface, add a button or form submit workflow. - Call your email API endpoint.
- Pass the values it needs, such as:
- Recipient email
- Subject
- Message
4) Test it ​
- Run the interface workflow in preview.
- Confirm the API succeeds.
- Confirm the email arrives.
Common pitfalls ​
The email sends from the wrong flow ​
- Use the backend
Send Emailaction inside an API Endpoint. - Do not use the old
WeWeb Emailplugin for this guide.
The email does not arrive ​
- Check the API response first.
- Then check the recipient address and spam folder.

