FW: [PHP] How to get the mail sending stuff to work on Win2k?

2003-01-05 Thread Rad Craig
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:
 
  ?php mail([EMAIL PROTECTED], test message, this is a test); ?
 
  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: FW: [PHP] How to get the mail sending stuff to work on Win2k?

2003-01-05 Thread Manuel Lemos
Hello,

On 01/05/2003 10:37 PM, Rad Craig wrote:

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?


No, PHP mail() function does not support authentication. You may want to 
try this class that comes with a wrapper function named smtp_mail() that 
 emulates the mail() function by sending the message via SMTP. It les 
you configure the authentication credentials among other things that the 
mail() function does not support:

http://www.phpclasses.org/mimemessage

To send via SMTP you also need this:

http://www.phpclasses.org/smtpclass


--

Regards,
Manuel Lemos


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php