I try to send a mail with php and the mail() function. I got the right smtp and port.
<?php
$header = 'From: mail\r\n';
$success = mail('mail', 'test', 'test', $header);
if ($success){
echo 'yes';
} else {
echo 'no';
}
?>
I wanted to see if it's worked or not but It's not working. Can anyone tell me why or how I can fix it?