"emailuser changed,imported smtplib
  , changed remaining unchanged . to +,removed delete_prev function,
changed code at line 112
changed php comments to python comments...............resolved almost all errors,
"