Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP mail attempt

Status
Not open for further replies.

cleanair4me46

Technical User
Feb 3, 2009
41
US
I have PHP 5 on Solaris 10 web server using Apache.
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??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top