2008/10/8 91change <[EMAIL PROTECTED]>:
>
> 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);
>
>
>
> But  , how can i add subject ,header fields to it  ?

Possibly by prepending header lines to the '$message' value before you
pipe it to exim. That's more of a PHP question than an Exim question,
though.

Peter

-- 
Peter Bowyer
Email: [EMAIL PROTECTED]
Follow me on Twitter: twitter.com/peeebeee

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to