added json to gitignore, implement sendmail via smtp