hi there,
i've read your requirements. Let me write to code to trigger email function. I will use tornado module to develop restapi. Let's discuss details on chat.
I'm in software development business for 10+yrs and have been doing python projects for 3+ yrs.
Please let me know if you have any questions, i will be very glad to answer them.
Thank you
Max