I know a lot of people here are php guru, so please help me sort out this problem.
I have a website and is configured to work with http and also with https.
I create a simple php mail() script, call mail.php
<?php
$to = "someone@gmail.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "others@mydomain.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
(Please note that the above mentioned emails are changed).
Now if I execute the above script through my browser, http://mydomain.com/test.php
I recieve the email in my gmail box. I see the log of my mail (postfix). It shows deleivered. So all good there
Now if I execute the above script through my browser, https://mydomain.com/test.php
I dont recieve the email in my gmail box
Please guys help me to sort it.
with regards