j4yj4y Posted November 28, 2011 Report Share Posted November 28, 2011 Hello Guys, I followed your video on how to setup a basic form and link it for email to a certain address, I put my email in the field, i currently have: mail('emailmenow@live.co.uk', 'Form Response ', $email_message); When I then press to preview it I have the error message that says: Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing inC:\wamp\www\form_response.php on line 22. I have found the php.ini and found the sendmail_from command, but I dont know what I am ment to put in it. Am I ment to put for my email 'emailmenow@live.co.uk' and if so will it work then or is there something else I must configure. I really dont want to cofigure that file if I dont know what I am doing. Thanks in advance, Jordan Jones Quote Link to comment Share on other sites More sharing options...
benjaminmorgan Posted November 28, 2011 Report Share Posted November 28, 2011 Are you on a live server or localhost? If you are running on localhost it is better to test on a live server. Quote Link to comment Share on other sites More sharing options...
j4yj4y Posted November 28, 2011 Author Report Share Posted November 28, 2011 Hello Ben, and thanks for a rapid response. I am just making it while following Stefans video. Its on a local host. How do I get it onto a live server then? Thanks in advance, Jordan Quote Link to comment Share on other sites More sharing options...
benjaminmorgan Posted November 28, 2011 Report Share Posted November 28, 2011 Live server is with a hosting company. Localhost is best to just learn on. That way you don't have to pay for hosting while you are learning. Quote Link to comment Share on other sites More sharing options...
j4yj4y Posted November 28, 2011 Author Report Share Posted November 28, 2011 Thats what I was thinking. So i can I set this up so I dont get the error because I am learning? Thanks in advance, Jordan Quote Link to comment Share on other sites More sharing options...
benjaminmorgan Posted November 28, 2011 Report Share Posted November 28, 2011 Well, Everytime I have used mail function on localhost I just ignore the message. You will have to do some research to see if it is possible to set it up on localhost. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.