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!
Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:\program files\easyphp1-7\www\tester.php on line 43
Any ideas on how to do this? Or should I just hold off and not run commands like this from my machine?
SMTP = smtp.server.com ; for win32 only
sendmail_from = me@myaddress.com ; for win32 only
;sendmail_path = ;for unix only, may supply arguments as well ; (default is sendmail -t)
you can do the following to make it somewhat easyer.. for as far as i remember it correctly.
There is a java package called James.. ( ill look in a bit where to get it)
just give me a sec....
_J_A_K_A_R_T_A__J_A_M_E_S___M_A_I_L__S_E_R_V_E_R
What is it?
-----------
JAMES is a 100% pure Java server application designed to be a complete,
portable and powerful enterprise mail engine solution based on currently
available open protocols (SMTP, POP3, IMAP, NNTP etc).
JAMES was formerly known as the Java Apache Mail Enterprise Server.
Thanks Dr. Evil. I saw that same advice on another's thread, so I did a search, and this is what I came up with. Heh.
Anyway, I installed the Postcast server, the SMTP it told me to have was "D6C3Z021", and so I changed the SMTP line in the php.ini file to that. So now it reads:
їmail function]
; For Win32 only.
;was localhost
SMTP = D6C3Z021
; For Win32 only.
sendmail_from = ShutterbugEOS31@aol.com
And the error:
Warning: mail(): Failed to connect to mailserver at "D6C3Z021" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:\program files\easyphp1-7\www\tester.php on line 92
I'm assuming that the PostCast server has to be open to get it to work, right? Do I have to make and send a "new" message inside PostCast to open the connection or somethin?
Yes PostCast must be running. The error you get is typical of php not finding the server.
Change the name of the server in php.ini and postcast config (ie computer name)
The setting is certainly wrong in postcast
Last edited by Dr Evil on Mon Mar 01, 2004 2:26 am, edited 1 time in total.
Excellent man, so far I'm not getting an error, but I'm not getting mail either. Could it be AOL blockin it or something? I know AOL is pretty touchy about that kinda stuff.
Dr.- what is your email config like? Do you use Outlook Express? I would like to, it seems pretty easy, but I don't know AOL's POP3 and SMTP settings, which I need for Outlook to get setup, right?
Ahh! Similar problem... okay, PostCast is running fine -- I can send e-mails from the program itself. Settings in PostCast indicate the host name is JENN server port 25.
Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:\Program Files\Apache Group\Apache2\htdocs\ftmc\registry_confirmadd.php on line 104