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