Roundcube Community Forum

 

Add a signature to e-mail with rcube_smtp.php

Started by KSS, February 28, 2011, 09:38:46 AM

Previous topic - Next topic

KSS

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
<p><img src="http://mXXXilXXXXXXrld.XXXX/banner_XXXs.jpg" alt="" /></p>'



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

JohnDoh

have you tried using these config options?

// 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'] = '';
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...