send mail in development
add message class
refactor