try to do a test from the terminal ussing send mail
echo "This is a test email." | mail -s "Test Email" your@email.com
if you received it, then nothing wrong with your Postfix or port
after sending the test, use the command:
tail -f /var/log/mail.log
for more detailed logs which should show sent:

if that`s not the case, could be the postfix or php configuration.
check as well the PostFix configuration
nano /etc/postfix/main.cf
check these lines:
relayhost = [10.20.0.10]:25 - either your local/public ip or use 127.0.0.1
smtp_tls_security_level = may
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtp_sasl_auth_enable = no
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
Once you are testing the Postfix and make sure that works and no issues with it, then you can focus on php configuration/module. For testing it with php, create a file mail-test.php and access your domain/mail-test.php to run the test
<?php
$to = "user@example.com";
$subject = "Test Email";
$message = "This is a test email from PHP.";
$headers = "From: itflow@example.com\r\n";
if (mail($to, $subject, $message, $headers)) {
echo "Mail sent successfully.";
} else {
echo "Mail sending failed.";
}
?>
Hope this helps and will put you on the right track!