PHP and SMTP

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

What operating system better

windows
3
43%
linuex
4
57%
 
Total votes: 7

spikes
Forum Newbie
Posts: 8
Joined: Wed Mar 03, 2004 6:51 pm

PHP and SMTP

Post 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
User avatar
andre_c
Forum Contributor
Posts: 412
Joined: Sun Feb 29, 2004 6:49 pm
Location: Salt Lake City, Utah

Post by andre_c »

Have you also set up a mail server on that computer?
spikes
Forum Newbie
Posts: 8
Joined: Wed Mar 03, 2004 6:51 pm

Post 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
spikes
Forum Newbie
Posts: 8
Joined: Wed Mar 03, 2004 6:51 pm

Need Help Please

Post by spikes »

I really need help on this...
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post 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?
spikes
Forum Newbie
Posts: 8
Joined: Wed Mar 03, 2004 6:51 pm

Post by spikes »

I'm using Imail express. However I wanted to use the smtp on the server better to send and recieve mail.
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post by infolock »

linux is more secure. windows is more user-friendly. the rest is up to you.
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post 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.
spikes
Forum Newbie
Posts: 8
Joined: Wed Mar 03, 2004 6:51 pm

Post by spikes »

SMTP is installed however I have no idea how to set it up...
spikes
Forum Newbie
Posts: 8
Joined: Wed Mar 03, 2004 6:51 pm

Post 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?
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

windows

and i have and use both linux and windows, so i can see both sides of the coin
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post 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.
spikes
Forum Newbie
Posts: 8
Joined: Wed Mar 03, 2004 6:51 pm

Post 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?
spikes
Forum Newbie
Posts: 8
Joined: Wed Mar 03, 2004 6:51 pm

Post by spikes »

Need help anybody
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

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