Hi,
this might become a little bit tricky ...
In a default postfix configuration file /etc/postfix/main.cf are e.g. the following lines:
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld
#mydomain = domain.tld
These must be set to a externally resolvable fqdn to be able to send mail to an external server, like
myhostname = mail.mydomain.com
mydomain = mydomain.com
But you might be able to send the mail without changing the mail server configuration by setting the sendmail_path configuration option in php.ini to the following value:
sendmail_path = "sendmail -t -i -F validmail@validdomain.com -f validmail@validhost.com"
Set the mail addresses to valid ones then restart the server and look if it works ....
Thomas