Hi Aaron,
I don't think your code works exactly what Mr.John Miller needs. His mail() function syntax is correct as same as yours. when I checked with your mail() function syntax, FROM field shows $from. I used the following code.
$from="pmanivannan@123india.com";
mail("pmanivannan@123india.com","hi","hi",'FROM: $from');
Hope the above code doesn't give the proper answer. sorry, If I have done anything wrong.
When I use the following Mr.John Miller's mail() function syntax ,
$from="pmanivannan@123india.com";
mail("pmanivannan@123india.com","hi","hi",'FROM:'.$from);
I got the correct answer. But he wants to do some changes in php3.ini file in server.
sendmail_from option must be null in php3.ini file. If it is assigned to some mail id in default, Mr.John Miller's mail() function will show the from option according to the assigned mail id. The FROM option will show the mail id whatever it is in sendmail_from option.
Thanks.