Roundcube Community Forum

Miscellaneous => Roundcube Discussion => Topic started by: KSS on February 28, 2011, 09:38:46 AM

Title: Add a signature to e-mail with rcube_smtp.php
Post by: KSS on February 28, 2011, 09:38:46 AM
Hello my Friends!

I try to add a HTML Signature to every mail leaving with roundcube via the rcube_smtp.php.

I tried it like this:

 
public function send_mail($from, $recipients, &$headers, &$body)
  {
 


$body .= 'Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

""

';


But this doesn't work with HTML, but works perfect with plain Text...

Can anyone out there help me with my problem?

Thank you very much!

Greetings

your KSS
Title: Add a signature to e-mail with rcube_smtp.php
Post by: JohnDoh on February 28, 2011, 10:43:40 AM
have you tried using these config options?

Code: [Select]
// path to a text file which will be added to each sent message
// paths are relative to the Roundcube root folder
$rcmail_config['generic_message_footer'] = '';

// path to a text file which will be added to each sent HTML message
// paths are relative to the Roundcube root folder
$rcmail_config['generic_message_footer_html'] = '';