j4yj4y Posted November 28, 2011 Report 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
benjaminmorgan Posted November 28, 2011 Report 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.
j4yj4y Posted November 28, 2011 Author Report 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
benjaminmorgan Posted November 28, 2011 Report 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.
j4yj4y Posted November 28, 2011 Author Report 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
benjaminmorgan Posted November 28, 2011 Report 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now