php + exim

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
91change
Forum Newbie
Posts: 1
Joined: Wed Oct 08, 2008 12:51 pm

php + exim

Post 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 ?
Post Reply