If you can confirm that the mail server settings are correct this error may be associated with the mail object itself. Do you know that this object has been registered on your server properly? If not you will need to check with your server admin to ensure that it is. With the object properly registered and the mail server settings correctly inputed it should send the emails.