Unable to send email alerts

Could not send email: {error,retries_exceeded,
{network_failure,“localhost”,{error,econnrefused}}}. Make sure that your email settings are correct.