fix
add initialize_smtp funcion.
Add config and lock file
Make it set subject and body of e-mail from setting file.
improve the logic and add error handling