From the Magento Admin Panel, click System > Configuration.

Look down to the ADVANCED sub-menu, at that point click System.

From the System area, click Mail Sending Settings.

Enter the right data in the Host and Port (25) fields: