Survey not working

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!

Moderator: General Moderators

Post Reply
malkaabi
Forum Newbie
Posts: 3
Joined: Sat Oct 18, 2008 9:51 am

Survey not working

Post by malkaabi »

Dear All

I need help please :!: :!:

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 ... :?:

lets me know please if you got the answer

waiting your reply

:roll:
Attachments
survey1.zip
(3.66 KiB) Downloaded 47 times
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Survey not working

Post by jaoudestudios »

What server are you hosting it on?

Btw, who ever wrote that code should not be allowed to use a computer! The code is shockingly TERRIBLE!

If it appears to work in the browser but you are just not getting the email, then check you have a mail server installed on your server.
malkaabi
Forum Newbie
Posts: 3
Joined: Sat Oct 18, 2008 9:51 am

Re: Survey not working

Post by malkaabi »

I use my own PC, I run XAMPP ..

also what u mean shockingly TERRIBLE .. 8O

:?:

I got it from http://www.hotscripts.com
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Survey not working

Post by jaoudestudios »

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.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Survey not working

Post by califdon »

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
Forum Newbie
Posts: 3
Joined: Sat Oct 18, 2008 9:51 am

Re: Survey not working

Post by malkaabi »

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 ...

:drunk:
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Survey not working

Post by califdon »

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 ...

:drunk:
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.
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Survey not working

Post by jaoudestudios »

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!
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Survey not working

Post by califdon »

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.
Post Reply