[PHP] How to get the mail sending stuff to work on Win2k?
I have a fresh install of PHP on a Win2k server. It is installed along with MySQL to allow me to run and XMB message base on my website. Everything works great except for the fact that I never receive any email notification when someone replies to a message I (or anyone else) posts. I think the problem is that I don't have the email part of PHP configured correctly. I used the php.ini-recommended file to set it up. In the mail section it says: SMTP=localhost There is a mail server on the local host. Do I have to install a sendmail app to get this working correctly? Nothing shows up in the event logs. One more question, when I make a change to that ini file, do I have to reboot the machine or just restart IIS? ==== Rad Craig ==== Rad Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
FW: [PHP] How to get the mail sending stuff to work on Win2k?
I run ArgoSoft's mail server which has worked great. I use SMTP authentication, could that be the problem? Is there a way to setup the info for SMTP authentication in PHP so it can pass it to the mail server during it's sendmail type functions? Rad... > -Original Message- > From: Andrew Brampton [mailto:[EMAIL PROTECTED]] > Sent: Sunday, January 05, 2003 6:22 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] How to get the mail sending stuff to work on Win2k? > > > Sorry I misread that you had a local mail server... > > Well I use ISP mail server for my PHP and it works fine, so there > is no need > to install any extras ie sendmail etc... > > I can only suggest that your mail server doesn't like forwarding mail for > PHP, maybe it takes the wrong way to it or something... If you > got any smtp > logs have a read to see if you see anything. If its IIS SMTP server I > beleive they are stored in c:\winnt\system32\Logfiles\\blah.log. > > Also to reload the php settings you just have to restart IIS. > > Hope this helps > Andrew > - Original Message - > From: "Rad Craig" <[EMAIL PROTECTED]> > To: "Andrew Brampton" <[EMAIL PROTECTED]> > Sent: Monday, January 06, 2003 12:20 AM > Subject: RE: [PHP] How to get the mail sending stuff to work on Win2k? > > > > I have an email server installed on that machine. Mail server works > great, > > has been for many months. > > > > I have tested it via PHP using this code: > > > > > > > > But it doesn't work. I never get an email. > > > > I've tried: > > SMTP = localhost > > SMTP = 127.0.0.1 > > SMTP = mail.mydomain.com > > > > None work. > > > > Rad... > > > > > -Original Message- > > > From: Andrew Brampton [mailto:[EMAIL PROTECTED]] > > > Sent: Sunday, January 05, 2003 6:12 PM > > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > > Subject: Re: [PHP] How to get the mail sending stuff to work on Win2k? > > > > > > > > > change that line to your ISPs email server. > > > OR install a email server locally > > > > > > Andrew > > > - Original Message - > > > From: "Rad Craig" <[EMAIL PROTECTED]> > > > To: "PHP Mailing List" <[EMAIL PROTECTED]> > > > Sent: Sunday, January 05, 2003 11:20 PM > > > Subject: [PHP] How to get the mail sending stuff to work on Win2k? > > > > > > > > > > I have a fresh install of PHP on a Win2k server. It is installed > along > > > with > > > > MySQL to allow me to run and XMB message base on my website. > > > > > > > > Everything works great except for the fact that I never receive > > > any email > > > > notification when someone replies to a message I (or anyone else) > posts. > > > I > > > > think the problem is that I don't have the email part of PHP > configured > > > > correctly. > > > > > > > > I used the php.ini-recommended file to set it up. In the mail > > > section it > > > > says: > > > > > > > > SMTP=localhost > > > > > > > > There is a mail server on the local host. > > > > > > > > Do I have to install a sendmail app to get this working correctly? > > > > > > > > Nothing shows up in the event logs. > > > > > > > > One more question, when I make a change to that ini file, > do I have to > > > > reboot the machine or just restart IIS? > > > > > > > > Rad Craig > > > > > > > > Rad Craig > > > > > > > > > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How to get the mail sending stuff to work on Win2k?
I just turned PHP authentication off and it didn't make any difference, still didn't receive any email from PHP. Rad... > -Original Message----- > From: Rad Craig [mailto:[EMAIL PROTECTED]] > Sent: Sunday, January 05, 2003 6:37 PM > To: PHP Mailing List > Subject: FW: [PHP] How to get the mail sending stuff to work on Win2k? > > > I run ArgoSoft's mail server which has worked great. I use SMTP > authentication, could that be the problem? > > Is there a way to setup the info for SMTP authentication in PHP so it can > pass it to the mail server during it's sendmail type functions? > > Rad... > > > -Original Message- > > From: Andrew Brampton [mailto:[EMAIL PROTECTED]] > > Sent: Sunday, January 05, 2003 6:22 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [PHP] How to get the mail sending stuff to work on Win2k? > > > > > > Sorry I misread that you had a local mail server... > > > > Well I use ISP mail server for my PHP and it works fine, so there > > is no need > > to install any extras ie sendmail etc... > > > > I can only suggest that your mail server doesn't like > forwarding mail for > > PHP, maybe it takes the wrong way to it or something... If you > > got any smtp > > logs have a read to see if you see anything. If its IIS SMTP server I > > beleive they are stored in c:\winnt\system32\Logfiles\\blah.log. > > > > Also to reload the php settings you just have to restart IIS. > > > > Hope this helps > > Andrew > > - Original Message - > > From: "Rad Craig" <[EMAIL PROTECTED]> > > To: "Andrew Brampton" <[EMAIL PROTECTED]> > > Sent: Monday, January 06, 2003 12:20 AM > > Subject: RE: [PHP] How to get the mail sending stuff to work on Win2k? > > > > > > > I have an email server installed on that machine. Mail server works > > great, > > > has been for many months. > > > > > > I have tested it via PHP using this code: > > > > > > > > > > > > But it doesn't work. I never get an email. > > > > > > I've tried: > > > SMTP = localhost > > > SMTP = 127.0.0.1 > > > SMTP = mail.mydomain.com > > > > > > None work. > > > > > > Rad... > > > > > > > -Original Message- > > > > From: Andrew Brampton [mailto:[EMAIL PROTECTED]] > > > > Sent: Sunday, January 05, 2003 6:12 PM > > > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > > > Subject: Re: [PHP] How to get the mail sending stuff to > work on Win2k? > > > > > > > > > > > > change that line to your ISPs email server. > > > > OR install a email server locally > > > > > > > > Andrew > > > > - Original Message - > > > > From: "Rad Craig" <[EMAIL PROTECTED]> > > > > To: "PHP Mailing List" <[EMAIL PROTECTED]> > > > > Sent: Sunday, January 05, 2003 11:20 PM > > > > Subject: [PHP] How to get the mail sending stuff to work on Win2k? > > > > > > > > > > > > > I have a fresh install of PHP on a Win2k server. It is installed > > along > > > > with > > > > > MySQL to allow me to run and XMB message base on my website. > > > > > > > > > > Everything works great except for the fact that I never receive > > > > any email > > > > > notification when someone replies to a message I (or anyone else) > > posts. > > > > I > > > > > think the problem is that I don't have the email part of PHP > > configured > > > > > correctly. > > > > > > > > > > I used the php.ini-recommended file to set it up. In the mail > > > > section it > > > > > says: > > > > > > > > > > SMTP=localhost > > > > > > > > > > There is a mail server on the local host. > > > > > > > > > > Do I have to install a sendmail app to get this working correctly? > > > > > > > > > > Nothing shows up in the event logs. > > > > > > > > > > One more question, when I make a change to that ini file, > > do I have to > > > > > reboot the machine or just restart IIS? > > > > > > > > > > Rad Craig > > > > > > > > > > Rad Craig > > > > > > > > > > > > > > > > > > > > -- > > > > > PHP General Mailing List (http://www.php.net/) > > > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > > > > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > > > > > > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail() not working on Win2k
I'm running under Win2k, new install of PHP(last week), I have been trying to test the mail() function, but it doesn't seem to work. I host my own mail server on the same machine and I know it works, has been for months, all other mail come/goes just fine. I don't have the default SMTP server for IIS installed since I have my own SMTP/POP3 mail server on this same server. I have tried it with the following: mail("[EMAIL PROTECTED]", "test message", "this is a test"); I have SMTP authentication turned off on my mail server for this testing. It never arrives, I never get an error. I can telnet to port 25, all works fine. phpinfo.php reports that everything looks good, only thing i saw was that the extension directory shows c:\php4 instead of c:\php. I don't have any extra .dll's or anything turned on since it has built-in support for MySQL. Can someone PLEASE help. Rad Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mail() not working on Win2k
yes, I've tried: SMTP = localhost SMTP = 127.0.0.1 SMTP = mail.mydomain.com SMTP = internal.ip.address None made any difference, so I've set it back to localhost. Rad... > -Original Message- > From: Collins, Robert [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 9:20 AM > To: '[EMAIL PROTECTED]'; PHP Mailing List > Subject: RE: [PHP] mail() not working on Win2k > > > Do you have this line in your php.ini file? > > SMTP =;for > win32 only > > -Original Message- > From: Rad Craig [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 9:22 AM > To: PHP Mailing List > Subject: [PHP] mail() not working on Win2k > > > I'm running under Win2k, new install of PHP(last week), I have been trying > to test the mail() function, but it doesn't seem to work. I host my own > mail server on the same machine and I know it works, has been for months, > all other mail come/goes just fine. I don't have the default SMTP server > for IIS installed since I have my own SMTP/POP3 mail server on this same > server. > > I have tried it with the following: > mail("[EMAIL PROTECTED]", "test message", "this is a test"); > > I have SMTP authentication turned off on my mail server for this testing. > > It never arrives, I never get an error. > > I can telnet to port 25, all works fine. > > phpinfo.php reports that everything looks good, only thing i saw was that > the extension directory shows c:\php4 instead of c:\php. > > I don't have any extra .dll's or anything turned on since it has built-in > support for MySQL. > > Can someone PLEASE help. > > > Rad Craig > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] include directory?
Where should this point to? Mine points to c:\php4\pear and I dont' have a pear directory under \php4. ==== Rad Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php.ini - changes aren't taking?
I have been trying to get my email working. I have made some changes in the php.ini file in the Windoze directory, but when I run phpinfo() the changes I make aren't changing on what it prints out. I have logging turned on in my php.ini file, but phpinfo() says it's turned off. Any ideas? ======== Rad Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mail() not working on Win2k
Yes, I restart IIS after every change/test. I don't have another outside SMTP server to check it on. Will yahoo and others like that work for testing this? Rad... > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 10:20 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] mail() not working on Win2k > > > Hello, > > "Rad Craig" <[EMAIL PROTECTED]> wrote: > > yes, I've tried: > > > > SMTP = localhost > > SMTP = 127.0.0.1 > > SMTP = mail.mydomain.com > > SMTP = internal.ip.address > > > > None made any difference, so I've set it back to localhost. > > ...and of course you restarted your web server after each changes? > > Have you tried another SMTP server? Perhaps, one outside? > > - E > > ...[snip]... > > __ > Do You Yahoo!? > Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php.ini - changes aren't taking?
I run IIS5, but yes, I restart it each time I make a change. > -Original Message- > From: Mat Harris [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 10:26 AM > To: Rad Craig > Cc: PHP Mailing List > Subject: Re: [PHP] php.ini - changes aren't taking? > > > have you restarted apache? > > On Mon, Jan 06, 2003 at 10:26:13 -0600, Rad Craig wrote: > > I have been trying to get my email working. I have made some > changes in the > > php.ini file in the Windoze directory, but when I run phpinfo() > the changes > > I make aren't changing on what it prints out. > > > > I have logging turned on in my php.ini file, but phpinfo() says > it's turned > > off. > > > > Any ideas? > > > > Rad Craig > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > Mat HarrisOpenGPG Public Key ID: C37D57D9 > [EMAIL PROTECTED] www.genestate.com > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php.ini - changes aren't taking?
Says it's using the one I'm changing. > -Original Message- > From: Johannes Schlueter [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 10:25 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] php.ini - changes aren't taking? > > > On Monday 06 January 2003 17:26, Rad Craig wrote: > > I have been trying to get my email working. I have made some changes in > > the php.ini file in the Windoze directory, but when I run phpinfo() the > > changes I make aren't changing on what it prints out. > > > > I have logging turned on in my php.ini file, but phpinfo() says > it's turned > > off. > > Have a look at "Configuration File (php.ini) Path" on the output > of phpinfo() > it tells you which ph.ini file is used. > > johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php.ini - changes aren't taking?
Yes, I restart my WebServer (IIS 5) each time. Yes, I am editing the .ini file the phpinfo() reports it is using. Rad... > -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 10:34 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] php.ini - changes aren't taking? > > > On Tuesday 07 January 2003 00:26, Rad Craig wrote: > > I have been trying to get my email working. I have made some changes in > > the php.ini file in the Windoze directory, but when I run phpinfo() the > > changes I make aren't changing on what it prints out. > > > > I have logging turned on in my php.ini file, but phpinfo() says > it's turned > > off. > > phpinfo() will tell you which php.ini it is using. Are you > editing the same > one? > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > > /* > Do not underestimate the value of print statements for debugging. > Don't have aesthetic convulsions when using them, either. > */ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php.ini - changes aren't taking?
> -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 10:55 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] php.ini - changes aren't taking? > > > On Tuesday 07 January 2003 00:43, Rad Craig wrote: > > Yes, I restart my WebServer (IIS 5) each time. > > > > Yes, I am editing the .ini file the phpinfo() reports it is using. > > Gawd, I hate it when people top-post. > > > > -Original Message- > > > From: Jason Wong [mailto:[EMAIL PROTECTED]] > > > Sent: Monday, January 06, 2003 10:34 AM > > > To: [EMAIL PROTECTED] > > > Subject: Re: [PHP] php.ini - changes aren't taking? > > > > > > On Tuesday 07 January 2003 00:26, Rad Craig wrote: > > > > I have been trying to get my email working. I have made > some changes > > > > in the php.ini file in the Windoze directory, but when I > run phpinfo() > > > > the changes I make aren't changing on what it prints out. > > > > > > > > I have logging turned on in my php.ini file, but phpinfo() says > > > > > > it's turned > > > > > > > off. > > > > > > phpinfo() will tell you which php.ini it is using. Are you > > > editing the same > > > one? > > Is it that _all_ of your changes are ignored, or only _some_ are ignored? > > Do you have any auto_prepend files anywhere which alter any of > these settings? > > Perhaps you should ask on the php-windows list. > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > > /* > "If you want to eat hippopatomus, you've got to pay the freight." > -- attributed to an IBM guy, about why IBM software uses so much memory > */ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Is this better? There's a PHP Windows list? Good Googly Moogly, whats the URL to sign up? Rad... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: mail() not working on Win2k
I can't use that as the program that I need for the email to work with, I don't have access to it's mail() function...yet. Rad... > -Original Message- > From: Manuel Lemos [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 4:28 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: mail() not working on Win2k > > > Hello, > > On 01/06/2003 01:21 PM, Rad Craig wrote: > > I'm running under Win2k, new install of PHP(last week), I have > been trying > > to test the mail() function, but it doesn't seem to work. I host my own > > mail server on the same machine and I know it works, has been > for months, > > all other mail come/goes just fine. I don't have the default > SMTP server > > for IIS installed since I have my own SMTP/POP3 mail server on this same > > server. > > > > I have tried it with the following: > > mail("[EMAIL PROTECTED]", "test message", "this is a test"); > > > > I have SMTP authentication turned off on my mail server for > this testing. > > > > It never arrives, I never get an error. > > > > I can telnet to port 25, all works fine. > > > > phpinfo.php reports that everything looks good, only thing i > saw was that > > the extension directory shows c:\php4 instead of c:\php. > > > > I don't have any extra .dll's or anything turned on since it > has built-in > > support for MySQL. > > Have you tried this alternative as I suggested in this other message to > you? Many people solved their problem with it, so can you. > > http://news.php.net/article.php?group=php.general&article=130351 > > > -- > > Regards, > Manuel Lemos > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] test_smtp.php
I'm trying to implement this smtp_email stuff. I'm running Win2k, ArgoSoft Mail Server Pro, PHP 4.3.0, MySQL, etc. I downloaded everything on these pages: DNS Resolver: http://www.phpclasses.org/browse.html/file/1910.html MIME: http://www.phpclasses.org/browse.html/package/9.html SMTP: http://www.phpclasses.org/browse.html/package/14 I'm sorry, but I'm a newb, so I have no idea what I'm doing with PHP. I created a \includes directory under my main PHP directory and my include path in the .ini file points there. I copied all of these files there except for the test_*.* files. I host my own mail server on the same machine. I then loaded up the file test_smtp.php in an editor and started filling in some blanks, like: $to - changed this to my email address $smtp->user - changed this to my email username $smtp->realm - changed this to my domain name $smtp->password - changed this to my email password I left everything else alone except changing $smtp->debug=1 after it didn't work the first time. My mail server requires authentication. I didn't receive any email, nor any output in the browser when I run that test page. Looks like it should give me SOME sort of feedback whether it succeeds or fails at the bottom, apparently it's never getting that far. I have php.ini configured to write it's error_log to a file, but it's always empty. I'm guessing I need to put in my DNS server names and ip's, but I have no idea where or how to do this in this php file or some other one? I have two that I could put in if I knew where. I haven't done anything to any of the other files, so if there is something else I need to configure, please tell me what and in which file. Sorry to be such a PITA, but I REALLY need to get this thing working. Thanks in advance. Rad Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php