Email: Change from comma to semicolon?

Hi.

Sugar has this very cool feature that one can email to many people at the same time by selecting the appropriate Contacts in List View, then click on the arrow and choose Email. However, the deliminator (seperator) is comma ( , ) but Outlook prefers (sure it can be configured) semicolon ( ; ).  

Can this be changed system wide?

How?

Thanks guys and have a spectacular weekend

KGM

Parents
  • Hi Kristjan,

    As i seen this parameter(email_address_separator) in config.php.It is set to comma(,)

    I think we can override this parameter in config_override.php like below

    $sugar_config['email_address_separator']=";";
  • 1st of all there is an option in Outlook which allows comma as address separator, so if you set that option all commas will be replaced by semicolons.

    If you really want to change the comma in Sugar to semicolon you must patch a core file which is not upgradesafe.

    This file is \include\javascript\sugar7\plugins\EmailClientLaunch.js

    I function _formatRecipientsToString you find the definition of the delim_char which is ',' by default.

    If you change the defintion to:

       _formatRecipientsToString: function(recipients) {
          var emailDelim = ';',
          emails = [],
          email;

    the email addresses will be separated by ";" globally.

    Harald Kuske
    Principal Solution Architect – Professional Services, EMEA
    hkuske@sugarcrm.com
    SugarCRM Deutschland GmbH

  • In Version 10.2 the function looks like this:

                _formatRecipientsToString: function(recipients) {
                    var emails = [];
    
                    recipients = recipients || [];
    
                    if (!_.isArray(recipients)) {
                        recipients = [recipients];
                    }
    
                    _.each(recipients, function(recipient) {
                        var email = getEmailAddress(recipient);
    
                        if (email.get('email_address')) {
                            emails.push(email.get('email_address'));
                        }
                    }, this);
    
                    return emails.join(',');
                },

    The last statement (return) uses the hardcoded comma.

    Harald Kuske
    Principal Solution Architect – Professional Services, EMEA
    hkuske@sugarcrm.com
    SugarCRM Deutschland GmbH

Reply
  • In Version 10.2 the function looks like this:

                _formatRecipientsToString: function(recipients) {
                    var emails = [];
    
                    recipients = recipients || [];
    
                    if (!_.isArray(recipients)) {
                        recipients = [recipients];
                    }
    
                    _.each(recipients, function(recipient) {
                        var email = getEmailAddress(recipient);
    
                        if (email.get('email_address')) {
                            emails.push(email.get('email_address'));
                        }
                    }, this);
    
                    return emails.join(',');
                },

    The last statement (return) uses the hardcoded comma.

    Harald Kuske
    Principal Solution Architect – Professional Services, EMEA
    hkuske@sugarcrm.com
    SugarCRM Deutschland GmbH

Children
No Data