Python Send Mail Using Javascript Innerhtml Functional Behavior