
Subscribe to updates
<< September 2010 >>
| Su |
Mo |
Tu |
We |
Th |
Fr |
Sa |
| |
|
|
1 |
2 |
3 |
4 |
| 5 |
6 |
7 |
8 |
9 |
10 |
11 |
| 12 |
13 |
14 |
15 |
16 |
17 |
18 |
| 19 |
20 |
21 |
22 |
23 |
24 |
25 |
| 26 |
27 |
28 |
29 |
30 |
|
|
|


Take The Global Broadband Speed Test...FREE! (I DID!)
|

Should you use SMTP or localhost in your Php.ini file?
This is a common problem, and one in which I had myself. I couldn't for the life of me figure it out. I read everything until I was blue in the face, but still couldn't get my WAMP server to send email from within my web applications.
My problem, like so many have had came from having three php.ini files...one in which I didn't realize even existed, and why I don't use WAMP Server anymore nor do I really recommend using. XAMPP is much better, and more like how a real server should be configured--yet I really don't recommend using XAMPP for production or to go live with, but only for testing purposes and/or to use it to create a copy of your real server be it local or remote.
If you are just getting started either one would be fine, but don't get hooked on them or rely on them too much, but rather use them to learn from then you can build your own server later with the knowledge you gained from using a server that is packaged together. If you read the documentation on PHP's website you will also see that they do not recognize the packaged programs as legitimate, but discourage you from using them.
OK, back to the question at hand. Some CMS (Content Management Software) applications work better with one than the other, and sometime during the installation will recommend one over the other, so please toke note. In fact, PHP-fusion will not send mail other than using SMTP if you are running Windows. If they don't, do some research and find out which one is best. Most will tell you straight-up that SMTP is better by default unless you are running a Linux system which has its own "Sendmail" program built into the server, then of course, you would choose the sendmail option.
I don't use either one, which is more out of personal choice than anything. I chose to use the PHPMail() function as I run a mail server along-side of my web-server that sends and receives the mail as sort of a gateway for all of my mail programs running on my system. I do this mostly for security reasons. In my PHP.ini file I put "localhost" for my "Mail Function" section instead of my SMTP mail server. If I ever wanted to change it all I have to do is substitute localhost with my ISP's mail server: mail.abc.com and switch off my mail server.
Regardless of which one you use you need to experiment first to find out what runs best for your system. If you don't want to bother with having a mail-server/gateway set-up (which you would probably need if you set it to localhost), then I would recommend just using the SMTP setting for everything, including your PHP.ini file and just leave it alone.
Hope this helps some. Good luck!
|
#1 |
on July 02 2010 22:29
#2 |
on July 22 2010 03:30
#3 |
on July 22 2010 03:31
#4 |
on September 09 2010 02:55
|
|
Please Login to Post a Comment.
|
|
Rating is available to Members only.
Please login or register to vote.
No Ratings have been Posted.
|
|
Not a member yet? Click here to register.
Forgotten your password? Request a new one here.
|
|
Newest Threads
No Threads created
Hottest Threads
No Threads created
|
|
You must login to post a message.
|
|