Page 1 of 1

PHP and SMTP

Posted: Wed Mar 03, 2004 6:51 pm
by spikes
I have this big problem was hoping somebody can help me.
I run my own websites off of my server at home. The operating system is windows 2000 server. With the latest php and mysql. In one of my websites after registering it suppose to send an email to email address registered with a confirmation code. Which will let that person into there account in my site. Will after many tries it will not sent out that email. I hope somebody can help me on this one.

Thanks

Posted: Wed Mar 03, 2004 6:57 pm
by andre_c
Have you also set up a mail server on that computer?

Posted: Wed Mar 03, 2004 7:08 pm
by spikes
I was using ipswitch but it only gives me upto 10 account and I have 10 different websites which require about 5 each. I was hoping I could use outlook however, i have no idea how to do this. I bought exchange server but don't know if I can use it.

Do you have any suggestions

Need Help Please

Posted: Wed Mar 03, 2004 9:31 pm
by spikes
I really need help on this...

Posted: Wed Mar 03, 2004 10:29 pm
by infolock
the problem isn't with the os, it's with your mail server. do you have a mail server setup on your win2k box? if so, can you send e-mail with it? also, are you using the correct port to send the e-mail? have you checked PHPINFO to ensure that imap is even installed and working?

Posted: Thu Mar 04, 2004 10:49 pm
by spikes
I'm using Imail express. However I wanted to use the smtp on the server better to send and recieve mail.

Posted: Thu Mar 04, 2004 11:32 pm
by infolock
linux is more secure. windows is more user-friendly. the rest is up to you.

Posted: Fri Mar 05, 2004 12:56 am
by Pyrite
Simply, get out your Win2k CD, and go to Add/Remove Windows Components and install IIS with SMTP. Then it should work. Unless you have another mail server on your Win2k Server?

Or you can get the phpmailer class, and use it to use your ISP's SMTP server.

Posted: Fri Mar 05, 2004 2:09 am
by spikes
SMTP is installed however I have no idea how to set it up...

Posted: Fri Mar 05, 2004 2:16 am
by spikes
However, I do have another question on the SMTP. Can I send and recieve mail? or do I set up SMTP and use my outlook to send and receive mail?

Posted: Fri Mar 05, 2004 3:00 am
by malcolmboston
windows

and i have and use both linux and windows, so i can see both sides of the coin

Posted: Fri Mar 05, 2004 4:02 am
by patrikG
spikes wrote:However, I do have another question on the SMTP. Can I send and recieve mail? or do I set up SMTP and use my outlook to send and receive mail?
pop server = post office protocol (i.e. you mailbox for receiving email)
smtp server = simple mail transfer protocal (i.e. your personal mailman for delivering email)

Any email client (be that Thunderbird, Outlook, Eudora, Evolution, Pegasus etc.) can send and receive emails if you specify the server settings right.

There are other protocols for mail transfer (e.g. IMAP) but if you want to discuss this further, I suggest you
a) you google for your question first as there are tons of tutorials out there dealing exactly with your question
b) if you still have further questions after a) open a new thread and don't derail this one.

Posted: Fri Mar 05, 2004 9:20 pm
by spikes
OK then does anybody know how to fill up the info in the SMTP. I have 6 websites running on my server so which info do I put on the phpini file?

Posted: Mon Mar 08, 2004 7:46 pm
by spikes
Need help anybody

Posted: Mon Mar 08, 2004 9:01 pm
by Pyrite
Just put the ip of your smtp server in php.ini to be able to use the php mail() function. Might have to setup your SMTP server to allow relaying from the server that php is hosted on.