Author Topic: Add a signature to e-mail with rcube_smtp.php  (Read 2044 times)

Offline KSS

  • Newbie
  • *
  • Posts: 4
Add a signature to e-mail with rcube_smtp.php
« 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
<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
« Last Edit: February 28, 2011, 09:42:57 AM by KSS »

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,226
Add a signature to e-mail with rcube_smtp.php
« Reply #1 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'] = '';
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦