|
Posted by J.O. Aho on 05/17/06 11:10
Timothee Groleau wrote:
> The mail system installed on my machine is ssmtp (minimal tool to send
> email). It has an executable as /usr/sbin/ssmtp and a
> symlink /usr/bin/sendmail pointing to it.
>
> My php.ini contains the following:
> [mail function]
> sendmail_path = /usr/sbin/ssmtp
You should use the default value for this and let ssmtp to be run with the
sendmail alias (not sure, but can be that ssmtp works differently when called
sendmail in a similar manner as busybox).
> When ssmtp runs, it reports messages using syslog in /var/log/messages. When
> I use the mail function in php, it returns true but I never receive the
> mail. Furthermore, there is no indication in /var/log/messages that ssmtp
> ran at all.
If no log, then it's not been used.
> How can I check what PHP did when calling mail and how can I fix this?
You can try to add <? ini_set('display_errors','1'); ?> to your script, this
will display error message directly in your browser.
I would recommend to use a real MTA, I don't feel that ssmtp is good for
anything really. emerge -C ssmtp && emerge sendmail
//Aho
Navigation:
[Reply to this message]
|