This function allows us to send emails using the Gmail SMTP service Usage Deploy on Google Cloud, set your environment variables and crack on! I wrote a more detailed explanation in this article.