PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
This is probably a really stupid question that should be answered easily. I have been scouring Tutorials and How Tos for days now and have been reluctant to submit a new post it in any forums for fear of someone having a one sentence answer, then continuing on for pages on how they pwned me and i'm such a noob.
Anyways here goes. I have created an online form for an application and the form works fine, it has a subsequent page that shows what information they have entered and it stores it all into a database quite nicely. My problem is that it will not email.
Here is some of the relevant code for the email:
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I put in the error checking you suggested and it came up. Am I not calling my sendmail correctly? I am very new to PHP so I am probably missing something really obvious.
Run a simple test hard coding the params into the function along with an error trap. See if that does anything. I doubt it will, but for problem solving purposes, start simple and work outward.
Thanks for all the help, btw i posted that incorrectly that my server was hosted... it's really local. My weekend starts now so i'll be back monday stewing over it. If you have any other ideas come over the weekend these posts are helping me get closer to the problem.
Thanks
If it is a local server I would guess that sendmail is not installed/configured. You may want to check that first before trying anything else code-wise.
Does anyone know where i could configure the php form to use a different address instead of apache@localhost or to how to allow apache@localhost permission?
Thanks