Fixing some issues with smtp configuration.

It will check if MR's smtp is enabled, otherwise it will use the default Magento's send method.

Now it accepts an option to use an alternative port when sending emails.
Adding some changes that weren't in git repository.

They are related to some bug fixes in user's sync process.