Re: postfix and php on suse 9.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

On 11/13/2004 10:48 PM, Chris W wrote:
I recently installed SUSE 9.1 and my php script that sent mail no longer
works.  It works fine on an suse 9.0 box.  I was wondering if anyone can
give me a hint as to what to look
for to fix this.  Below is some of my error log from a send attempt.

Nov 13 11:50:34 WebServer postfix/pickup[30613]: 1EF48D587: uid=30
from=<wwwrun>
Nov 13 11:50:34 WebServer postfix/cleanup[31469]: 1EF48D587:
message-id=<20041113175034.1EF48D587@xxxxxxxxx>
Nov 13 11:50:34 WebServer postfix/cleanup[31469]: 1EF48D587:
to=<unknown>, relay=none, delay=0, status=bounced (No recipients specified)
Nov 13 11:50:34 WebServer postfix/cleanup[31473]: 2CA3DD5AF:
message-id=<20041113175034.2CA3DD5AF@xxxxxxxxx>
Nov 13 11:50:34 WebServer postfix/qmgr[3547]: 2CA3DD5AF: from=<>,
size=1833, nrcpt=1 (queue active)
Nov 13 11:50:34 WebServer postfix/local[31474]: 2CA3DD5AF:
to=<root@xxxxxxxxx>, orig_to=<wwwrun@xxxxxxxxx>, relay=local, delay=0,
status=sent (delivered to mailbox)
Nov 13 11:50:34 WebServer postfix/qmgr[3547]: 2CA3DD5AF: removed

Here is the simple mail script that I am using to test
<?php
$message =  "This is a Test Message ";
mail('1qazse4@xxxxxxx', "test message", $message);
?>
<HTML><BODY>
Message sent.
</BODY></HTML>

It seems PHP is not configured properly to send messages via postfix.

You may want to try this class that comes with a wrapper function named sendmail_mail() that works like the mail() function except that it calls the postfix sendmail wrapper program directly.

http://www.phpclasses.org/mimemessage


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux