Tutorial 4: Sending emails and text messages
At some point, as part of your user authentication and registration process, you will want to send emails and/or text messages. Whether it is for One-Time Passwords, magic login links, or verification links. AuthGuard can easily be configured to send emails and text messages to users directly. Alternatively, you can also use a message bus bridge to handle sending them outside of AuthGuard but that is outside the scope of this tutorial.
In this tutorial, we will configure an AuthGuard distribution to make it send emails to users using an SMTP server. At the end we will also show an example of using a REST API instead of SMTP, as well as using SMS.