Using this code, we can send email notification from data factory using sendgrid email SMTP relay and azure function
- Create send grid account and register sender email
- Use the comitted code to create azure function in python langauge
- deploy the azure function to azure portal
- Create data factory and add web activity to trigger the azure function
- Use the deployed function URL and configure it in Data Factory web activity.
- Parameters can be passed to azure function from web activity using post or get method.