I am using Mac OS, netbeans, Mamp pro to send an email using php, I need to send email to all domains.
I did try to configure the Postfix but has not been successful, ( it always returns 1 but email wont be received)
looking forward for your help.
$to = ‘my email address goes here';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: my email address goes here ' . "\r\n" .
'Reply-To: my email address goes here' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$return = mail($to, $subject, $message, $headers);