[PHP] PHP - mail problems - HELP!!! PLEASE

2005-01-15 Thread Kelly
I am having trouble with PHP 5.0.3.  I am running Apache 1.3.29.  I am 
running Solaris 9 x86 on an Intel box.

I get no errors when I start Apache.  I get no errors when I run configtest.
My problem is mail() does not work.  It does invoke sendmail as there is 
activity in sendmail log.

When I get an error page it does not display PHP is exposed.  It is 
exposed in php.ini.

register_globals is turned on right now.
Variables to parse into values.
$MESG = $_POST['comments']; parses to values.

This is the log from sendmail.
The first is sending mail from WEBMIN.  The second is sending from PHP 
mail().

'WEBMIN'
Jan 14 20:03:13 www sendmail[17613]: [ID 801593 mail.info] 
j0F23DBA017613: [EMAIL PROTECTED], size=889, class=0, 
nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED]
Jan 14 20:03:14 www sendmail[17616]: [ID 801593 mail.info] 
j0F23D4b017616: from=[EMAIL PROTECTED], size=1083, class=0, 
nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=MTA-v4, 
relay=localhost [127.0.0.1]
Jan 14 20:03:14 www sendmail[17613]: [ID 801593 mail.info] 
j0F23DBA017613: [EMAIL PROTECTED], 
[EMAIL PROTECTED] (0/1), delay=00:00:01, xdelay=00:00:01, 
mailer=relay, pri=30889, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, 
stat=Sent (j0F23D4b017616 Message accepted for delivery)
Jan 14 20:03:15 www sendmail[17618]: [ID 801593 mail.info] 
j0F23D4b017616: to=[EMAIL PROTECTED], 
ctladdr=[EMAIL PROTECTED] (0/1), delay=00:00:01, 
xdelay=00:00:01, mailer=esmtp, pri=121083, relay=boredomsoftware.com. 
[67.18.56.2], dsn=2.0.0, stat=Sent (OK id=1CpdH0-00067K-Lb)

'PHP mail()'
Jan 14 20:04:41 www sendmail[17630]: [ID 801593 mail.info] 
j0F24f8b017630: from=nobody, size=200, class=0, nrcpts=0, 
msgid=[EMAIL PROTECTED], 
[EMAIL PROTECTED]


Can someone please help me figure this out?  I am desperate!!  I am also 
at my wits end.  I have been fighting with this for a week. 

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


Re: [PHP] PHP - mail problems - HELP!!! PLEASE

2005-01-15 Thread John Hicks
Kelly wrote:
I am having trouble with PHP 5.0.3.  I am running Apache 1.3.29.  I am 
running Solaris 9 x86 on an Intel box.

I get no errors when I start Apache.  I get no errors when I run 
configtest.

My problem is mail() does not work.  It does invoke sendmail as there 
is activity in sendmail log.

When I get an error page it does not display PHP is exposed.  It is 
exposed in php.ini.

register_globals is turned on right now.
Variables to parse into values.
$MESG = $_POST['comments']; parses to values.

This is the log from sendmail.
The first is sending mail from WEBMIN.  The second is sending from PHP 
mail().

'WEBMIN'
Jan 14 20:03:13 www sendmail[17613]: [ID 801593 mail.info] 
j0F23DBA017613: [EMAIL PROTECTED], size=889, class=0, 
nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED]
Jan 14 20:03:14 www sendmail[17616]: [ID 801593 mail.info] 
j0F23D4b017616: from=[EMAIL PROTECTED], size=1083, class=0, 
nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=MTA-v4, 
relay=localhost [127.0.0.1]
Jan 14 20:03:14 www sendmail[17613]: [ID 801593 mail.info] 
j0F23DBA017613: [EMAIL PROTECTED], 
[EMAIL PROTECTED] (0/1), delay=00:00:01, 
xdelay=00:00:01, mailer=relay, pri=30889, relay=[127.0.0.1] 
[127.0.0.1], dsn=2.0.0, stat=Sent (j0F23D4b017616 Message accepted for 
delivery)
Jan 14 20:03:15 www sendmail[17618]: [ID 801593 mail.info] 
j0F23D4b017616: to=[EMAIL PROTECTED], 
ctladdr=[EMAIL PROTECTED] (0/1), delay=00:00:01, 
xdelay=00:00:01, mailer=esmtp, pri=121083, relay=boredomsoftware.com. 
[67.18.56.2], dsn=2.0.0, stat=Sent (OK id=1CpdH0-00067K-Lb)

'PHP mail()'
Jan 14 20:04:41 www sendmail[17630]: [ID 801593 mail.info] 
j0F24f8b017630: from=nobody, size=200, class=0, nrcpts=0, 
msgid=[EMAIL PROTECTED], 
[EMAIL PROTECTED]


Can someone please help me figure this out?  I am desperate!!  I am 
also at my wits end.  I have been fighting with this for a week.
Kelly

What do you mean by:
When I get an error page it does not display PHP is exposed.  It is 
exposed in php.ini. 

Is mail() returning an error? If so, what is it?
Have you had the same PHP code working in a different environment?
If you haven't figured out the problem yet, post your PHP code here.
-John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP mail() problems

2002-07-30 Thread John Williams

I'm having a problem getting the mail() function working on php 4.2.2.

I get the error message:
Warning: mail() is not supported in this PHP build

I'm running Solaris 8 and have set the symlink for sendmail.  I have
recompiled PHP, set the php.ini to point to sendmail and restarted the
web server.

; For Unix only.
;You may supply arguments as well (default: 'sendmail -t -i').
sendmail_path = /usr/sbin/sendmail -t -i

(I've tried it with and without quotes)


Still no luck...

Any ideas?

Thanks!

John

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




Re: [PHP] PHP mail() problems

2002-07-30 Thread Rasmus Lerdorf

Try rm config.cache, re-configure and try again

On Tue, 30 Jul 2002, John Williams wrote:

 I'm having a problem getting the mail() function working on php 4.2.2.

 I get the error message:
 Warning: mail() is not supported in this PHP build

 I'm running Solaris 8 and have set the symlink for sendmail.  I have
 recompiled PHP, set the php.ini to point to sendmail and restarted the
 web server.

 ; For Unix only.
 ;You may supply arguments as well (default: 'sendmail -t -i').
 sendmail_path = /usr/sbin/sendmail -t -i

 (I've tried it with and without quotes)


 Still no luck...

 Any ideas?

 Thanks!

 John

 --
 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] php mail problems

2001-12-18 Thread Mike Jarosch

Hello,

Using a Solaris box with php 4.0.6 I am having a problem sending mail using
mail().  Sendmail is installed and works.  Php.ini points to sendmail.  What
do the -t and -i options do?  Are they required?  Any ideas what could be
wrong?

Here is my code:
if( mail( myemailaddresshere, Test, test, From: myemailaddresshere )
== FALSE )
{
 print( 'Error sending email 1.' );
}

Thanks,
Mike



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]