Send Emails With

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/ivandoric
Twitter: / ivan_doric

Пікірлер: 22

  • @RobertWildling
    @RobertWildling11 ай бұрын

    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.

  • @WatchandLearnTutorials

    @WatchandLearnTutorials

    11 ай бұрын

    Thanks for the info Robert. I'm gonna pin this comment. 👍

  • @karsongrady
    @karsongrady Жыл бұрын

    Flows with some kind of batching or digesting for, say, a weekly email with top posts. Great video as always! Thank you.

  • @WatchandLearnTutorials

    @WatchandLearnTutorials

    Жыл бұрын

    Thanks for the suggestion 👍

  • @mahsamrz5787
    @mahsamrz5787 Жыл бұрын

    Hello again, Thank you so much for uploading this tutorial ❣

  • @WatchandLearnTutorials

    @WatchandLearnTutorials

    Жыл бұрын

    No problem 😀

  • @jawadbinsarfraz832
    @jawadbinsarfraz83210 ай бұрын

    How can directus send confirmation link to an email from whom new users trying to register ?

  • @shubhampatil5935
    @shubhampatil593524 күн бұрын

    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.

  • @faisalabdin
    @faisalabdin Жыл бұрын

    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

  • @efuentesp
    @efuentesp Жыл бұрын

    Can you explain how to compute a field based on fields in same entity?, is it possible with flows?

  • @biblaizplayer4497
    @biblaizplayer4497 Жыл бұрын

    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

  • @Nudjialz
    @Nudjialz Жыл бұрын

    Are these flows stored in the database, or can you configure these with files to put in source control?

  • @WatchandLearnTutorials

    @WatchandLearnTutorials

    Жыл бұрын

    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

  • @BambangSumarsono
    @BambangSumarsono Жыл бұрын

    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?

  • @WatchandLearnTutorials

    @WatchandLearnTutorials

    Жыл бұрын

    Did you setup Mailgun correctly? Did you configure it in your .env file etc. Something is probably wrong on that end.

  • @BambangSumarsono

    @BambangSumarsono

    Жыл бұрын

    @@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

  • @AbhishekKushwahaa

    @AbhishekKushwahaa

    Жыл бұрын

    same problem with me not receiving mail

  • @WatchandLearnTutorials

    @WatchandLearnTutorials

    Жыл бұрын

    @@AbhishekKushwahaa Sorry guys, no idea. Try asking at some of Directus channels.

  • @wadienorri6329
    @wadienorri6329 Жыл бұрын

    Can you make a video on how to use send email flow to actually print certain fields from a record ?

  • @WatchandLearnTutorials

    @WatchandLearnTutorials

    Жыл бұрын

    I am showing that in this video, we are printing out first and last name.

  • @wadienorri6329

    @wadienorri6329

    Жыл бұрын

    @@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 !

  • @WatchandLearnTutorials

    @WatchandLearnTutorials

    Жыл бұрын

    @@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.