I have searched every which way and can't find an answer to my problem. My form is working and data is being written to the database on my local PC (not on my host server). I get the warning below and when I check line 48 there is nothing there. Can someone please help me fix this problem? I'm not good enough to go messing with the PHP.INI file. I looked and the lead in and it says there are two - php_developement and php_production but I could not find them.
Warning: mail() : "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\xampp\mydocs\processor.php on line 48
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What type of web server is running on your Windows PC?
Do you have a mail server working on or with the web server?
Why don't you want to publish your page to a live/working web host?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
tnteveret1: First let me thank you very much for your quick reply.
1. I installed mysql localhost with xampp.
2. I am not sure if there is a mail server running - is there a way to tell? Now that you've asked, I remember reading a web discussion about someone asking how to send email from 127.0.0.1
3. I want to publish the form live on my host's system but I was testing it to make sure everything worked the way I expected first.
Do you think if I moved the files to the live server the problem will go away?
One more question - Can I just import the files and Table using phpMyAdmin or do I need to use the install? I'm pretty sure I know how to change the Database Name and Password but any advice is welcome.
Thanks again
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I use Uniformserver and free mail server but rarely ever use the mail server. I rely on the fact that the mail functions are pretty standard and rarely ever fail unless the support is not present on the server.
If you are not aware of a mail server on your test environment then you probably don't have one.
Testing on a live system works just as well if you manage whether or not the live test form is easily visible or accessible for any visitor.
If you don't have a mail server and the problems are related to sending mail then yes, moving the form to your live server will likely solve the problem.
I don't typically use SQL but when I do I use whatever installation available and then fix up anything that does not work before going live with the form.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have searched every which way and can't find an answer to my problem. My form is working and data is being written to the database on my local PC (not on my host server). I get the warning below and when I check line 48 there is nothing there. Can someone please help me fix this problem? I'm not good enough to go messing with the PHP.INI file. I looked and the lead in and it says there are two - php_developement and php_production but I could not find them.
Warning: mail() : "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\xampp\mydocs\processor.php on line 48
What type of web server is running on your Windows PC?
Do you have a mail server working on or with the web server?
Why don't you want to publish your page to a live/working web host?
tnteveret1: First let me thank you very much for your quick reply.
1. I installed mysql localhost with xampp.
2. I am not sure if there is a mail server running - is there a way to tell? Now that you've asked, I remember reading a web discussion about someone asking how to send email from 127.0.0.1
3. I want to publish the form live on my host's system but I was testing it to make sure everything worked the way I expected first.
Do you think if I moved the files to the live server the problem will go away?
One more question - Can I just import the files and Table using phpMyAdmin or do I need to use the install? I'm pretty sure I know how to change the Database Name and Password but any advice is welcome.
Thanks again
I use Uniformserver and free mail server but rarely ever use the mail server. I rely on the fact that the mail functions are pretty standard and rarely ever fail unless the support is not present on the server.
If you are not aware of a mail server on your test environment then you probably don't have one.
Testing on a live system works just as well if you manage whether or not the live test form is easily visible or accessible for any visitor.
If you don't have a mail server and the problems are related to sending mail then yes, moving the form to your live server will likely solve the problem.
I don't typically use SQL but when I do I use whatever installation available and then fix up anything that does not work before going live with the form.
tnteveret1: The strange thing is I am not trying to send mail. I am just writing (loading) form data to the database.
Have you verified there are no mail functions in your process.php file?
fyi
xampp does have email, but the email service isn't turned on by default