AnsweredAssumed Answered

Can I Extend Email.php in v8 in an upgrade safe manner?

Question asked by Francesca Shiekh on Aug 8, 2018
Latest reply on Aug 15, 2018 by Francesca Shiekh

I am trying to extend Email.php in an upgrade safe manner in Sugar Pro 8.0.1 but can't seem to do so.


Ultimately I want to override getOutboundEmailDropdown and use some custom code to allow the user to send email FROM a Group email account.  That functionality was removed in v8 and I was told that restoring is would be an "Enhancement" so I have to come up with a solution of my own in order to upgrade to v8.x.


Could we be the only organization that wants to send email from group accounts instead of individual's email accounts?


I successfully changed the vardefs via the Extension


$dictionary['Email']['fields']['outbound_email_id']['function'] = 'getCustomOutboundEmailDropdown';

$dictionary['Email']['fields']['outbound_email_id']['function_bean'] = 'Email'


but I get a repeated error:

PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Email' does not have a method 'getCustomOutboundEmailDropdown' in /var/www/html/sugarcrm/include/utils.php on line 5539, referer:


Any thoughts on getting what I need done?