Skip to main content
Closed for Voting

multiple email signature

Related products:Freshdesk
  • August 14, 2016
  • 18 replies
  • 57 views

Today the signature is for each agent. I suggest to have multiple signature for each email sender. very usefull for agents who have to send emails using diffefent senders.

18 replies

You could try the following App. It works for Reply in the ticket page ( not for new emails ) and needs minimal configuration ( what is the default signature - if any - and what is the signature for each From address ).
<style>
  .ticket_signature_from {
    color: #555;
  }
</style>
<div id="ticket_signature_depending_on_from"></div>
<script>
  jQuery('#ticket_signature_depending_on_from').closest('.widget').removeClass('widget');

  var add_signature_from = function() {
    var ticket_from = htmlDecode(jQuery('form#HelpdeskReply select#reply_email_id option:selected').html());
    var field_arr = [];
    var ticket_signature = 'zzz'; // Default signature
    if (ticket_from) {
      field_arr = ticket_from.split('<');
      ticket_from = field_arr[1];
      if (ticket_from) {
        ticket_from = ticket_from.substring(0, ticket_from.length - 1);;
        switch (ticket_from) {  // Signature fore each sender
          case 'address-a@mydomain.tld':
            ticket_signature = 'aaa';
            break;
          case 'address-b@mydomain.tld':
            ticket_signature = 'bbb';
            break;
          case 'address-c@mydomain.tld':
            ticket_signature = 'ccc';
            break;
        }
      }
    }
    setTimeout(function() {
      if (jQuery('.redactor_editor').find('.ticket_signature_from').length == 0) {
        jQuery('.redactor_editor').append('<div class="ticket_signature_from">' + ticket_signature + '</div>');
      } else {
        jQuery('.ticket_signature_from').html(ticket_signature);
      }
    }, 500);
  };

  function htmlDecode(value) {
    return jQuery('<div/>').html(value).text();
  }

  jQuery('body').on('click', 'a[data-note-type="reply"]', add_signature_from);
  jQuery(document).on('change', 'form#HelpdeskReply select#reply_email_id', add_signature_from);
</script>


  • Author
  • Contributor
  • August 15, 2016

Hi Thanos!


Thanks for your kind help. In this case, my signature is images, any idea?


Regards,


Patrick


You will have to provide the right HTML for your signature. Example:
          case 'address-b@mydomain.tld':
            ticket_signature = '<img src="http://mydomain.tld/images/signature-b.png" alt="Signature for Sender B">';
            break;

The images must be publicly available.


BTW, the signatures in the code change when the From changes:




  • Author
  • Contributor
  • August 18, 2016

Thanks!



  • Author
  • Contributor
  • August 18, 2016

Is there a way to this work also when sending new email?


Thanks


I am currently on vacation and, to be honest, not sure if I can help there. Maybe someone from Freshdesk could help there.

 


  • Author
  • Contributor
  • August 19, 2016
Thanks anyway... Your help was very usefull.

I actually tried addressing that case but I don't have much experience with how the new outbound emails page is arranged and what events to listen to for spotting when the sender changes. It might be very easy, but until now, I have not found a reasonable way to do it.

 


  • Author
  • Contributor
  • August 19, 2016
I jave afdresed this issue to support. If I have any news, Will keep you updated. best regards

Thank you Patrick. I'm interested in this.

 


  • Author
  • Contributor
  • August 26, 2016

Hi Thanos!


We have the solution below, please note this is another APP and must run in paralel at the suggested by you.


Thanks again for your help!


<style>

.ticket_signature_from {

color: #555;

}

</style>

<div id="ticket_signature_depending_on_from"></div>

<script>

jQuery('#ticket_signature_depending_on_from').closest('.widget').removeClass('widget');

var add_signature_from = function() {

console.log('inside add signature');

var ticket_from = htmlDecode(jQuery('#helpdesk_ticket_email_config_id option:selected').html());

var field_arr = [];

var ticket_signature = '.'; // Default signature

if (ticket_from) {

field_arr = ticket_from.split('<');

ticket_from = field_arr[1];

if (ticket_from) {

console.log('inside if');

ticket_from = ticket_from.substring(0, ticket_from.length - 1);;

switch (ticket_from) { // Signature fore each sender

case 'abc@def.com':

ticket_signature = 'ABC DEF';

break;

case 'abc@def.com':

ticket_signature = 'ABC DEF';

break;

case 'abc@def.com':

ticket_signature = 'ABC DEF';

break;

case 'abc@def.com':

ticket_signature = 'ABC DEF';

break;

}

}

}

setTimeout(function() {

console.log(ticket_signature);

if (jQuery('.redactor_editor').find('.ticket_signature_from').length == 0) {

jQuery('.redactor_editor').append('<div class="ticket_signature_from">' + ticket_signature + '</div>');

} else {

jQuery('.ticket_signature_from').html(ticket_signature);

}

}, 500);

};

function htmlDecode(value) {

return jQuery('<div/>').html(value).text();

}

jQuery(document).ready(add_signature_from);

jQuery(document).on('change', '#helpdesk_ticket_email_config_id', add_signature_from);

</script>


Thank you Patrick.

 


  • Community Debut
  • August 9, 2018

hey, i am new to apps. when you say "use this app" do you mean to paste your template into a file and then upload it as a custom app?


Forum|alt.badge.img+7
  • Community Manager
  • September 5, 2019

Hello,


Have you tried making use of the Marketplace apps for this?


Signature Management can store multiple signatures which are added to the reply editor.


Signature Management Plus can store multiple signatures which can be used based on the group or the product assigned to a ticket which the agent can choose.


Dynamic Support/Group based Signature app can add signatures (with placeholders) based on the support email or the group to which the ticket is assigned to.


Hope this was helpful :)


  • Contributor
  • December 6, 2019

Hi,

In the Freshdesk Marketplace, you have the email signature manager for Freshdesk agents, using the Bybrand. Has support to add placeholders and full-time or occasional agents load.


Here's an example of the email signature update:


image


Companies that use Bybrand integrated with Freshdesk save time on email signature management for all support staff.

See you!



  • Community Debut
  • January 16, 2020

Hi community, it looks like still non of the Apps replace the "email notification " -> "template" -> "Agent reply template" function. We need a tool which automatically insert the Company signature based on the customer language and product. Any ideas?Thanks

Sven


  • Community Debut
  • March 4, 2020


@Sven. This was suggested 7 years ago in a another thread. Don't hold your breath.


Hello Sven and Mark,


Using the Signature Management Plus app mentioned by @Karthick, you would be able to able to include the Signature automatically based on a product. However, we do not have the option to include the signature based on the customer language but we would surely pass on the feedback to our team!


Cheers!