Hi, Jose,
2005/11/11, JOSE A. HERRAN jherran@kedesfase.com:
I want to append a text to all messages sent from RC, like yahoo or others webmails.
What you are trying to add is only useful as a general message for the whole system. This could be useful for company's disclaimers, but it's not useful in the way other webmails do. I guess you want to add a signature, and that should be independent for every different user.
I modified the file roundcubemail/program/steps/mail/sendmail.inc, and just before the following comment: // create PEAR::Mail_mime instance
i add these lines.
$file = realpath("../../../config/msg_footer.txt"); if(file_exists($file)) { $handle = fopen($file, "r"); $content = fread($handle, filesize($file)); fclose($handle); $_POST['_message'] = $_POST['_message'] . "\n" . $content; }
If this feature is going to be used should be part of the main config file (writting the disclaimer there (as raw text) or with the path to the text file).
-- Andres Jimenez