cleanair4me46
Technical User
I have PHP 5 on Solaris 10 web server using Apache.
None of my email attempts work:
I dont get any error message to find out why it is not working. Also, I noticed unix sendmail doesnt work on this server. Does PHP mail function use the Solaris sendmail to work? I assume I need to get Unix sys admin to fix the Solaris sendmail for PHP mail to work??
None of my email attempts work:
Code:
<?php$to = "someone@example.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";?>
I dont get any error message to find out why it is not working. Also, I noticed unix sendmail doesnt work on this server. Does PHP mail function use the Solaris sendmail to work? I assume I need to get Unix sys admin to fix the Solaris sendmail for PHP mail to work??