JOSE A. HERRAN wrote:
Hi,
I want to append a text to all messages sent from RC, like yahoo or others webmails.
I tryed the following but without succes, can anyone help me... i think that my solution is good, but does not work, and i don't know why.
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; }
of course, the file ../../../config/msg_footer.txt exists.
The path to the footer file is wrong. Please note that the index.php file (in RC root folder) is executed and only includes the step file. The path to the text file has t be relative to the root dir: config/msg_footer.txt
I need help.
Regards. Jose
Regards, Thomas