add smtp conf in email initializer
added rescue excep code