Add mail auth and fix bug setting the smpt host