After having trouble setting up a mail form with my hosting service (which says it supports php4), I set up a test page to check whether the mail() worked.
Is there anything wrong with the page below. When I call it, should it not send an email to me?
<head><title>PHP Test</title></head><body>
<?php mail("my@emailaddress.com", "Test Subject", "test 1\ntest 2\ntest 3");?>
</body>
according to phpinfo() (I replaced host's real name with <myhost>):
sendmail_from - webmaster@<myhost>.com - webmaster@<myhost>.com
sendmail_path - no value - no value
SMTP - mail.<myhost>.com - mail.<myhost>.com
Internal Sendmail Support for Windows 4 - enabled
This seems to tell me that it is set to use SMTP only, but that should not effect the usage of mail() - correct?