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!
In this survey I have to received mail in my inbox "Hotamil", I followed the instructions and changed some value as written but i don't know why I can't received mails ... may be I have to change an other value ...
What OS are you running? Do you have a mailserver installed?
All the code is shockingly terrible, html and php! So badly written. The html will definitely not valid under any standards and the php is inefficient. Both languages are forgiving so it might still work.
Definitely think your issue is with your mailserver not the code.
To expand on jaoudestudio's comments, in order to send outgoing email, you must have access to an SMTP server, either on the same computer the web server is on, or a remote server which you are authorized to access. If you have installed an SMTP server on your local PC, that's all you need, but if not, you will have to have write your code to access some remote server, presumably the one that you normally use for your personal email, like at your ISP.
malkaabi wrote:I tried in both on my work which is have outlook2007 ..
and in home on hotmail account but both not working
The idea is I want make form or survey like that then receive the result in my mail ...
You have misunderstood. It is the OUTGOING mail server that you must reach. Outlook2007 is not an SMTP server and HotMail will certainly not allow you to directly access their SMTP server. You need to either install an SMTP server on your computer or use a remote SMTP server that allows you to send email using their server. You may want to look into this free SMTP server for Windows: http://www.softstack.com/freesmtp.html. I know nothing about it, so I am NOT recommending it to you, just making you aware that such software IS available.
Years ago when I tried to setup a mailserver on windows with my WAMP setup I did not succeed and I wasted so much time on it! I recommend using Linux which will come with LAMP and a mailserver already installed, which will all work straight out of the box!
jaoudestudios wrote:Years ago when I tried to setup a mailserver on windows with my WAMP setup I did not succeed and I wasted so much time on it! I recommend using Linux which will come with LAMP and a mailserver already installed, which will all work straight out of the box!
True, Linux makes lots of things easier, especially in the server world. Whether server software is installed depends on which Linux distribution you download. I never tried a Windows SMTP server, myself.