Roundcubemail email package

    Date: 01/30/07 (PHP Community)    Keywords: php, programming, web, hosting

    Hello everybody,

    I am still new at PHP programming and have already picked up some tips by watching this community. This is my first time posting and I hope to solve my problem this way. Thanks in advance!

    Ok, here is what I'm trying to do. I have installed the email package 'Roundcubemail' on the hosting server and website and am trying to modify the code so that I can add a fixed message to each email that will be sent out. Something like a disclaimer at the bottom of business emails.

    File 1 -------->
    In the following directory, I found this file...

    /mysite/roundcubemail/config/main.inc.php

    and this code....
    171> // path to a text file which will be added to each sent message
    172> // paths are relative to the RoundCube root folder
    173> $rcmail_config['generic_message_footer'] = '';


    File 2 ------->
    Then, I found this file in directory...
    /mysite/roundcubemail/program/steps/mail/sendmail.inc

    and this code...
    163> // append generic footer to all messages
    164> if (!empty($CONFIG['generic_message_footer']))
    165>   {
    166>   $file = realpath($CONFIG['generic_message_footer']);
    167>   if($fp = fopen($file, 'r'))
    168>     {
    169>     $content = fread($fp, filesize($file));
    170>     fclose($fp);
    171>     $message_body .= "\r\n" . rcube_charset_convert($content, 'UTF-8', $message_charset);
    172>     }
    173>   }


    File 3 ------->
    Ok, I have created a text file 'footer.txt' and added a new directory '/mysite/roundcubemail/footer/' that now contains my footer-file.

    The contents of this file is for now...
    _____________________________________
    email footer
    _____________________________________

    I have changed line 173 in file main.inc.php to this ...
    173> $rcmail_config['generic_message_footer'] = '../footer/footer.txt';

    But alas, the message in the text-file is not added to the email sent. Any advice? Thanks!

    Source: http://community.livejournal.com/php/535188.html

« A (semi-?)challenging MySQL... || thanks! »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home