上QQ阅读APP看书,第一时间看更新
How it works...
We have updated the code of the RegisterUser function to accept another new parameter named email.
The function accepts the email parameter and sends the email to the end user using the SendGrid API. We have also configured all the other parameters, such as the From address, Subject, and body (content) in the code so that it is customized dynamically based on the requirements. We can also clear the fields in the SendGrid output (message) bindings, as shown in the following screenshot:
The values specified in the code will take precedence over the values specified in the preceding step.