Hi all,
I am using php mail function to send simple mail , but the mail function is giving me the error following error :
Warning: mail() [function.mail]: "sendmail_f rom" not set in php.ini or custom "From:" header missing in D:\Inetpub\head trixtraining\re gister.php on line 4234
mail not send
when I tried to see the mail setting by phpinfo() function I get the following values for different mail parameters:
1) sendmail_from no value no value
2) sendmail_path no value no value
3) SMTP localhost localhost
I am using the following code for that :
$headers = 'From: Headtrix Team <info@headtrixt raining.com>'." \n";
mail('dinesh198 5singh@gmail.co m','test subject','test message',$heade rs);
Could you please explain how to get rid of this error message.
Thanks
I am using php mail function to send simple mail , but the mail function is giving me the error following error :
Warning: mail() [function.mail]: "sendmail_f rom" not set in php.ini or custom "From:" header missing in D:\Inetpub\head trixtraining\re gister.php on line 4234
mail not send
when I tried to see the mail setting by phpinfo() function I get the following values for different mail parameters:
1) sendmail_from no value no value
2) sendmail_path no value no value
3) SMTP localhost localhost
I am using the following code for that :
$headers = 'From: Headtrix Team <info@headtrixt raining.com>'." \n";
mail('dinesh198 5singh@gmail.co m','test subject','test message',$heade rs);
Could you please explain how to get rid of this error message.
Thanks
Comment