You are browsing the documentation for version 4.2 of OroCommerce, OroCRM and OroPlatform, which is no longer maintained. Read version 5.1 (the latest LTS version) of the Oro documentation to get up-to-date information.
See our Release Process documentation for more information on the currently supported and upcoming releases.
Add Additional Recipients in Autocompletion¶
create provider implementing
it has 2 methods
returns translation key of section in select where recipients from the provider will be placed
return associative array where key is email address and value is email address with name
relatedEntity - object from which email is being send
limit - maximum number of emails which should be returned from the provider
query - string writte by user when typing email address/name
excludedEmails - emails returned by previously executed providers
tag provider with the
Oro\Bundle\EmailBundle\Provider\RelatedEmailsProviderextracts emails from the given object and its relations
EmailRecipientsHelper helps to filter given emails