updated to provide smtp credentials in config