renamed function
added docstrings for send mail and dict2html