Page 1 of 1

php + exim

Posted: Wed Oct 08, 2008 12:52 pm
by 91change
i found a script on internet . The script is in php and used to send mails . It works fine for me

$to = escapeshellcmd($to);
$from = escapeshellcmd($from);
$exim = popen('/path/to/exim -f ' . $from . ' ' . $to, 'w');
fwrite($exim, $message);
pclose($exim);


Here i can specify to and from field .
But , how can i add subject , header etc fields to it ?