Inittally without trying your code, I would get this running VB diag:
SMTP: localhost
sendmail_from: me@localhost.com
sendmail_path: None
My hoster won't let me touch the php.ini.
I grabbed your script, followed it verbatim, and now I get this
Fatal error: Call to undefined function: errormessage() in H:\hshome\wiltechs\basementreview.com\forums\inclu des\mail.php on line 235
Here is my line 235
return errorMessage("Unexpected response from SMTP server");
help!!!!