Inevitably, there will come a time when our application will have to log messages, send an email, or both. In this chapter, we will be discussing the latter, sending emails. The sending of emails fits in perfectly with the microservice architecture guidelines that we laid out earlier. It is extremely business-specific, self-contained, adheres to separation of concerns, and is self-deployable.
In this chapter, we will learn the following:
- How to send emails based upon a message subscription
- How to send emails without knowing the SMTP host