feat(issue22/server-flask): Removes hard-coded email as we use envvars

This commit is contained in:
sovanna 2020-04-14 13:55:22 +09:00
parent 42837ec0b2
commit a8d02b5962

View File

@ -22,8 +22,6 @@ def send_rfq():
return make_response(resp, 400) return make_response(resp, 400)
recipient = current_app.config["MAIL_RECIPIENT"] recipient = current_app.config["MAIL_RECIPIENT"]
if current_app.debug:
recipient = "sovanna.xyz@gmail.com"
msg = Message( msg = Message(
"[ORDER HARDWARE - RFQ from %s]" % payload['email'], "[ORDER HARDWARE - RFQ from %s]" % payload['email'],