Send Emails With
HTML-код
- Опубликовано: 7 фев 2025
- Flows in Directus enable custom, event-driven data processing and task automation. In this video we are going to send an email to the admin, when new user is created.
Flows are a low code way of setting up automation tasks in Directus. They consist of triggers and operations.
Triggers are actions or events that are happening inside your Directus app like when something is created, when there is an incoming webhook, when the cron job has started and so on.
An operation is an action or process performed within the flow. These enable you to manage data: send off emails, push in-app notifications, send webhooks and more.
In this video we are going to send an email to the admin, when new user is created
You can support my work on Patreon
/ watchlearn
Follow me on Social Media
Github: github.com/iva...
Twitter: / ivan_doric
Thank you for this!
For late-comers: I am working through the Directus Flow tutorials by Watch&Learn in August 2023, and at least for this video there is a change that is probably worth mentioning. The Mailgun interface has changed since this video tutorials. In case anybody is asking her-/himself, which of the three API keys to use (private, public, webhook), use the webhook API key that is mentioned in your Mailgun Dashboard.
Thanks for the info Robert. I'm gonna pin this comment. 👍
Flows with some kind of batching or digesting for, say, a weekly email with top posts. Great video as always! Thank you.
Thanks for the suggestion 👍
Hello again, Thank you so much for uploading this tutorial ❣
No problem 😀
How can directus send confirmation link to an email from whom new users trying to register ?
Can you let us know how to read response of email that is send and based upon that response perform update data operation? please reply.
Could you show how we can make a custom script to run as a crown job on my table like for example, I regularly upload new data with which has date of birth and I would like the age to be calculated (once a day) in the age column of the corresponding registered client etc
Hi, can you show me how to make a notification to the mail using the table "Employees" which has the field "Date of birth". I was wondering how you could do a time check\data so that these notifications would come, let's say once a week notifying that such and such people have a birthday on such and such dates
Can you explain how to compute a field based on fields in same entity?, is it possible with flows?
Flow say email was sent but the message is not coming in my email. Following your step by step but the email still not coming. I'm on local machine, did I miss something?
Did you setup Mailgun correctly? Did you configure it in your .env file etc. Something is probably wrong on that end.
@@WatchandLearnTutorials yes, already fill .env file with api key and domain name with value that shown in Mailgun dashboard then start directus. My sending log in Mailgun also empty, not sure about the Mailgun setup, what should I double check on that? receiver email has been verified as well
same problem with me not receiving mail
@@AbhishekKushwahaa Sorry guys, no idea. Try asking at some of Directus channels.
Are these flows stored in the database, or can you configure these with files to put in source control?
As far as I can tell they are stored in the DB. But if you wanna share them with the team, you could create a seed file that will create, delete or update flows via API, since you can create, edit and update flows via API. docs.directus.io/reference/system/flows.html
Can you make a video on how to use send email flow to actually print certain fields from a record ?
I am showing that in this video, we are printing out first and last name.
@@WatchandLearnTutorials Thanks for the reply, but what I want to do is send an email to an actual printer and print a paper with certain fields. Do I need to set an email provider for this ? thank you again for sharing these videos !
@@wadienorri6329 Hmmm, what do you mean actual printer? Like some persons email that is going to print something for you, or are you trying to send this to the printer device - if that is the case I have no idea how you would do that, for that you probably wouldn't need an email provider, but as for steps for doing that, I don't know.