You can that error because the SMTP configuration you have in the "email" area of the joomla configuration is not correct.
Please contact your hosting to company in order to check your SMTP credentials and put the correct information there an it will work.