Email

Learn how to send an email, automatically, by executing a simple Node script.

We'll cover the following...

Email is a great way to notify colleagues when something has been done. You may have completed a task and you may want to inform your team that it has been processed successfully. Alternatively, if something goes wrong, you can trigger an email to notify your team.

When you think about how this build tool will run, you must imagine a server running locally or in the cloud to set up a Cron jobA cron job is a Linux command used for scheduling tasks to be executed sometime in the future. This is typically used to schedule a job that is executed periodically – for example, to send out a notice every morning. that will call the build tool at intervals —hourly, daily, or weekly— so it can work without you manually initiating it. When this process is running on its own, though, you have no idea of what is happening unless you attain some feedback.

SMTP protocol

Email is a good way to deal with the aforementioned problem. At work, your company, most likely, has some email system configured ...