[PLUG] postfix/sendmail errors on -t
Robby Russell
matchboy at tearitalldown.com
Thu Aug 29 04:56:27 UTC 2002
I'm using a php app...and it gives my /var/log/mail/error log this when it
tries to send an email.
I'm pretty sure that this is where it attempts to send emails..
anything that i can do to fix postfix to let this work?
Aug 28 21:33:51 dns postfix/sendmail[1362]: fatal: cannot handle
command-line recipients with -t
...code snip....
// This is the function used to send mail throughout OPT. It has
// precisely the same syntax as mail() - the nice thing is that
// it sends the correct character encoding provided in the globals.
function OPT_mail($to, $subject, $message, $ah="", $ap="") {
$tah=$ah;
if (!(($tah) && (substr($tah,-1,1)=="\n"))) {
$tah.="\n";
}
global $_OPT;
$tah.="Content-Type: text/plain; charset=".$_OPT["local"]["encoding"];
if (isphpver("4.0.5")) {
return(mail($to, $subject, $message, $tah, $ap));
} else {
// additional parameters only in PHP>4.0.5
return(mail($to, $subject, $message, $tah));
}
}
....end code snip...
More information about the PLUG
mailing list