|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
SMTP with PHP 5
I am running php 5 off an Apache2 server on windows. When I run the mail() function I recieve an error that my php.ini is not configured correctly. Can anyone please tell me how to configure the php.ini file.
|
|
#2
|
||||
|
||||
|
RE: SMTP with PHP 5
I installed PHP 5 on my windows xp successuly. However, when I try to send out mail with the mail(), I recieve the following error:
Quote:
My mail settings in my php.ini file is configured like this: Quote:
Someone advise me to test if I can connect to telnet localhost 25 -- the connection failed. I am not sure what that indicates. I tried to shut off the windows firewall and then try to use the mail(), but it still did not work. If someone can please tell me how to get SMTP working? |
|
#3
|
||||
|
||||
|
RE: SMTP with PHP 5
I'm starting to think you don't have an SMTP server installed. Possible solutions: 1) install one on the same server as Apache 2) use another server for that. If your ISP allows it, you could use their SMTP server.
|
|
#4
|
|||
|
|||
|
RE: SMTP with PHP 5
I thaught PHP or Apache comes with an SMTP server, but that could a misconception.
Do you have any suggestions for SMTP servers? |
|
#5
|
||||
|
||||
|
RE: SMTP with PHP 5
PHP contains no servers, and apache is only a HTTP server.
Unfortunately, I have no experience with mail servers, so I can't really suggest anything. |
|
#6
|
|||
|
|||
|
RE: SMTP with PHP 5
Here is a link - http://www.hmailserver.com
|
|
#7
|
|||
|
|||
|
RE: SMTP with PHP 5
yehuda54,
We had that problem yesterday and fixed it by looking up our SMTP in our local mail program. If you use Outlook, Outlook Express, Eudora, Pegasus Mail or some other desktop mail client, you can find the SMTP settings in the config for that particular program. If you use a webmail client like yahoo, hotmail, mail, etc. You need to contact your ISP to get the SMTP settings. If you are on a Broadband or Highspeed connection the SMTP configuration information is available either in your config file that came with your DSL/Cable modem or is available when you log into your online account. Anyway you should wind up with something like the following in your php.ini file: Code:
[mail function] ; For Win32 only. ;SMTP = localhost SMTP = SMTP.comcast.net smtp_port = 25 Where you copy the SMTP line, comment out the first, and edit the second to your known SMTP settings. What we are fighting today is, we need to send 3 emails back to back. We find the mail command hangs or leaves the socket open and will not except another email until it is re-initialized. I'm trying to find code to re-init the socket or mail handler. OMR |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > SMTP with PHP 5 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|