from watching the /var/log/maillog
i notice that every time i run a simple php script like:
<?
mail("ialexs@onklik.com","the_subject","the_body","From:god");
print("check the /var/log/maillog");
?>
give me the following /var/log/maillog
[root@yoda ilya]# tailf /var/log/maillog
Jan 17 09:31:03 yoda sendmail[2423]: JAA02423: from=apache, size=58,
class=0, pri=58, nrcpts=0, msgid=<200101170131.JAA02423@yoda.artisi>,
relay=apache@localhost
notice the 'nrcpts', it said nrcpts=0
in bash, using 'mail ialexs@onklik.com'
give me the following /var/log/maillog
Jan 17 09:36:36 yoda sendmail[2485]: JAA02485: from=apache, size=48,
class=0, pri=30048, nrcpts=1, msgid=<200101170136.JAA02485@yoda.artisi>,
relay=apache@localhost
notice the 'nrcpts', it said nrcpts=1
and the mail sent succesfully.
hmm... but <? phpinfo() ?> gave me a correct path to sendmail
i'm no sendmail nor php warrior,
any hints greatly appreciated.
🙂