Fix that email failed to send when stmp parameters are not set

This fixes #465. Also this changes enabled fall back to mail method when
smtp parameters are not available.
Merge branch 'hotfix' into dev

Conflicts:
	app/controllers/users_controller.php
	app/models/sys_parameter.php