Skip to content

Configure and Send Mail in Strapi V4

This is a Strapi backend with a custom code controller that creates an entity (job ad).

We want the backend to send an email after the job ad is created. So please show us howto configure strapi to send mails via SMTP. And howto hook the mail into the lifecycle.

This is a test job with a fixed offer of $50. We want to see that you are comfortable with Stapi and then work with you long term.

Details:

Controller creating a job ad.

https://gitlab.com/yawik/backend/-/blob/main/src/api/job/controllers/job.js#L105-136

Mailtext should contain the ID of the job.

New job created: 
ID: <id>
Edited by Carsten Bleek