Variable email address alerting

Hello,

I have a project where I need to send alerts to an email adress which is an input variable in a python program.
I’m using InfluxDB and Grafana, and I would like to specify an email address in my program so it would send the alerts to it. Hypothetically, it would need to work with several datasources (and thus several emails).
Thanks