上QQ阅读APP看书,第一时间看更新
How it works...
The aim of this recipe is to send a notification via email to an administrator, updating that a new registration got created successfully.
We have used the one of the Azure Function experimental templates named SendGrid as a Simple Mail Transfer Protocol (SMTP) server to send the emails by hardcoding the following properties in the SendGrid output (message) bindings:
- From the email address
- To the email address
- Subject of the email
- Body of the email
SendGrid output (message) bindings will use the API key provided in App settings to invoke the required APIs of the SendGrid library to send the emails.