Set php.ini for sending mail
Posted: Tue Sep 16, 2008 4:20 pm
Hello to all,this is my first message in your forum.
I am trying to find my error. I have set the php.ini with my custom settings(smtp,mail address)
i have did the same with the php5.ini,with the same file in the apache/bin folder, and i create this php file:
<? php
mail('mymail','The site Contact us','eee');
?>
and when i am trying to run it, i am seeing this:
Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\mail.php on line 2
If i write this:
<?
mail("my mail","test","Ok, it works");
?>
I will see this:
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\mail.php on line 2
Please if anybody wants may help me?
I am trying to find my error. I have set the php.ini with my custom settings(smtp,mail address)
i have did the same with the php5.ini,with the same file in the apache/bin folder, and i create this php file:
<? php
mail('mymail','The site Contact us','eee');
?>
and when i am trying to run it, i am seeing this:
Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\mail.php on line 2
If i write this:
<?
mail("my mail","test","Ok, it works");
?>
I will see this:
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\mail.php on line 2
Please if anybody wants may help me?