Use SendGrid to send emails

Cloud Functions does not allow outbound connections on port 25, so you cannot make nonsecure connections to an SMTP server. Instead, you should use SendGrid to send emails.

Get DevOps for Serverless Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.