I apoligize in advance for the simplicity of the question. I am just learning PHP but i do want to learn!!!
I was trying to test php to send a simple email...then i was going to tie to MYSQL to mail a newsletter. I did a phpinfo on my server and it returned this...
PHP Version 4.0.3pl1
sendmail_path /usr/sbin/sendmail -t -i
for local value..
I then wrote the simplest of emails to test
<?
$to = "me@mydomain.com";
$subject = "Test of Mail in PHP";
$msg = "I Hope this works";
$headers = "From: me@mycompany.com\nReply-To: someoneelse@mycompany.com";
$config = "-fwebmaster@mycompany.com";
mail("$to", "$subject", "$msg", "$headers", "$config");
echo "finished!";
?>
When i ran it... I got this message
Warning: Wrong parameter count for mail() in /usr/local/apache/vhosts/mydomain.com/httpsdocs/KPImailtest.php on line 7
finished!
I can find no doumentation that tells me what the -t and -i parameters mean in my host but i expect that tells me why i am in error.
Can someone explain or point me to a resource that explains the parameters to sendmail. I am retired and again apoligize in advance for the simplicity of the question. Regards, Michael