"Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampplite\htdocs\processor.php on line 37"
The above line is what i get when i try to submit a test to a form i generated on phpformgenerator's site.
Its a quotation form which then should email us letting us know we have a new quote.
But i get the above error.
Im testing the form in a virtual machine with xamp installed. apache/php/mysql are showing running.
I have made some edits to the php.ini file but i could not resolve the issue.
Any help pointing me in the right direction would be amazing.
im new to php but not computers, just programming.
Thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Looks like either the mail function syntax is wrong or there is some strict rules for using the function turned on. If the form worked before on another site then I would say it is server setup, but if the form never workrd the issue is in the process.php file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i figured it out. in my php.ini file, i original used the internal ip of our mail server for "smtp server".
so i changed it to it's dns name and it worked.
thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampplite\htdocs\processor.php on line 37"
The above line is what i get when i try to submit a test to a form i generated on phpformgenerator's site.
Its a quotation form which then should email us letting us know we have a new quote.
But i get the above error.
Im testing the form in a virtual machine with xamp installed. apache/php/mysql are showing running.
I have made some edits to the php.ini file but i could not resolve the issue.
Any help pointing me in the right direction would be amazing.
im new to php but not computers, just programming.
Thank you
Looks like either the mail function syntax is wrong or there is some strict rules for using the function turned on. If the form worked before on another site then I would say it is server setup, but if the form never workrd the issue is in the process.php file.
hi. no this is the first time attemp with this form.
i figured it out. in my php.ini file, i original used the internal ip of our mail server for "smtp server".
so i changed it to it's dns name and it worked.
thanks