[PHP] making sure sendmail function is on and running

2004-08-24 Thread AceZero2790
Background: 
Server-Apache 1.3.31 
OS-Windows XP
PHP-5
Problem-I'm trying to run eFiction, a story/fanfiction archive script. On 
this, people self register, and they are supposed to get an e-mail with their 
password. However, I and one other attempted signing up, and neither of us got 
our password-email. After doing research, I heard I needed to make sure that my 
sendmail function was activated.

How do I make sure that my sendmail function is on and running? I read the 
documentation and checked my php.ini, but I have some doubts.

1. My php.ini doesn't seem to include everything that should be either. In 
the documentation, it shows your mail section having four parts: SMTP, SMTP 
Port, sendmail_from, sendmail_path. However, php.ini looks like this (windows 
section):

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = [EMAIL PROTECTED]

 There is a sendmail_path down below, but it is under the For Linux Only 
section. What's with that?
 Also, I have a router. Do I need to port-forward port 25 to get sendmail 
to work?
 Thanks in advance.

-Andrew


Re: [PHP] making sure sendmail function is on and running

2004-08-24 Thread Markus Mayer
This one is rather annoying as I have found out in the last couple of weeks.  
Depending on if your apache/php is on Windows or Unix, one or the other of 
the configurations you mentioned is relevant.  

If you have Windows, PHP can only use an extrenal smtp server, so you have to 
open that server up to connections from your web server to your mail server.  
That could be on the same physical machine as your web server, in which case 
the mail server will have to be configured to accept connections from 
localhost.  In this case, you use the SMTP and smtp_port paramaters, and the 
sendmail parameter is ignored.

If you are on Unix, PHP can only use a locally installed and callable MTA 
(Mail Transport Agent).  That defaults to Sendmail, but Postfix, Exim, Qmail, 
and a few other MTA's that simulate Sendmails' functionality are acceptable.  
In this case, you use the sendmail parameter, which should be executable and 
configured, and the two parameters for Windows (which would actually be quite 
useful on Unix systems too) are ignored.

You shouldn't need to do any port forwarding as long as both your Web and Mail 
servers are freely accessible to each other, say behind the firewall.

Hope this sheds some light for you.

regards
markus.

On Tuesday 24 August 2004 15:47, [EMAIL PROTECTED] wrote:
 Background:
 Server-Apache 1.3.31
 OS-Windows XP
 PHP-5
 Problem-I'm trying to run eFiction, a story/fanfiction archive script. On
 this, people self register, and they are supposed to get an e-mail with
 their password. However, I and one other attempted signing up, and neither
 of us got our password-email. After doing research, I heard I needed to
 make sure that my sendmail function was activated.

 How do I make sure that my sendmail function is on and running? I read the
 documentation and checked my php.ini, but I have some doubts.

 1. My php.ini doesn't seem to include everything that should be either. In
 the documentation, it shows your mail section having four parts: SMTP, SMTP
 Port, sendmail_from, sendmail_path. However, php.ini looks like this
 (windows section):

 [mail function]
 ; For Win32 only.
 SMTP = localhost
 smtp_port = 25

 ; For Win32 only.
 ;sendmail_from = [EMAIL PROTECTED]

  There is a sendmail_path down below, but it is under the For Linux
 Only section. What's with that?
  Also, I have a router. Do I need to port-forward port 25 to get
 sendmail to work?
  Thanks in advance.

 -Andrew

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



Re: [PHP] making sure sendmail function is on and running

2004-08-24 Thread AceZero2790
If you have Windows, PHP can only use an extrenal smtp server, so you have to 

open that server up to connections from your web server to your mail server.  

That could be on the same physical machine as your web server, in which case 
the mail server will have to be configured to accept connections from 
localhost.  In this case, you use the SMTP and smtp_port paramaters, and the 
sendmail parameter is ignored.

Questions:
1. What is an SMTP server? Does it come automatically with PHP or what?
2. What is my mail server, like AOL that I am using now or something else?
3. How do I make sure that my SMTP server is connecting to my mail server?
4. How do I make sure that/ configure it so my mail server is accepting 
connections from localhost?

-Andrew


Fwd: [PHP] making sure sendmail function is on and running

2004-08-24 Thread AceZero2790
 
---BeginMessage---
Background: 
Server-Apache 1.3.31 
OS-Windows XP
PHP-5
Problem-I'm trying to run eFiction, a story/fanfiction archive script. On 
this, people self register, and they are supposed to get an e-mail with their 
password. However, I and one other attempted signing up, and neither of us got 
our password-email. After doing research, I heard I needed to make sure that my 
sendmail function was activated.

How do I make sure that my sendmail function is on and running? I read the 
documentation and checked my php.ini, but I have some doubts.

1. My php.ini doesn't seem to include everything that should be either. In 
the documentation, it shows your mail section having four parts: SMTP, SMTP 
Port, sendmail_from, sendmail_path. However, php.ini looks like this (windows 
section):

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = [EMAIL PROTECTED]

 There is a sendmail_path down below, but it is under the For Linux Only 
section. What's with that?
 Also, I have a router. Do I need to port-forward port 25 to get sendmail 
to work?
 Thanks in advance.

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