engelmav / codinginenglish

Online learning platform.
https://www.codinginenglish.com
0 stars 0 forks source link

On submit application, send customer email #146

Open engelmav opened 3 years ago

engelmav commented 3 years ago

Email template coming

The endpoint for receiving the student application is

app.route("/api/student-application", methods=["POST"])

located in file codinginenglish/api/main_api.py

What we want to do is send an email to the potential customer after they submit their application.

In order to send the email, you can use the pre-created send_mail function inside of codinginenglish/api/services/mailjet.py

Look for other uses of send_mail function to see how the template is created and how it's populated before it gets sent to send_mail.