PostNuke

Flexible Content Management System

News

Christ!

Contributed by Thanks for the fix! on Jul 30, 2001 - 09:58 PM

from user.php







} else {






$fp = popen('/usr/sbin/sendmail -t -f '.$from.' '.$email,"w");






if(!$fp) return false;






fputs($fp,"From:".$from."rn");






fputs($fp, "To: $emailrn");






fputs($fp, "Subject: ".$subject."rn");






fputs($fp, $message);






fputs($fp, "rn");






pclose($fp);














This opens a socket to talk to the sendmail and writes to it then ends it...













The original looks like this








} else {






mail($email, $subject, $message, "From: $fromnX-Mailer: PHP/" . phpversion());














Oh! The 'rn' stuff is to be preceeded byt backslashes but those are stripped from the submit.php ;->













//Mattias

687