Fix bug regarding setting the smtp host.

Fix bug regarding setting the smtp host.