We are moving our outgoing email and I have a request to add a BCC to all outgoing emails from the system for a while. Has anyone ever done something like this? It will be the same email every time.
If it's only emails that the users send (from the UI) - we can extend the MailApi and create a CustomMailApi in custom/modules/Emails/clients/base/api/CustomMailApi.php. In the handleMail method we can add the BCC in the request args.
If you want to add emails for all outgoing emails (eg: auto replies, system emails, etc) - And since you say it's temporary - a non-upgrade safe approach is to directly modify modules/Emails/Email.php - and add your BCC whenever $mailer->send() is called. But since it's non upgrade safe - you can't do this in Cloud.
I have a Logic Builder flowchart that creates email message draft automatically
Here is screenshot of the piece of it, that implements adding bcc to the email draft
I suppose everything that could be configured for Sugar could be developed with code too,
therefore I hope the screenshot could be of help
We make work in Sugar CRM system faster, more convenient and efficient
We are using external clients (Outlook, Thunderbird, etc.) and we have set the client's system to do a BCC to our SugarOnDemand installation (we don't do custom code). For those using Office365 or clients that don't offer an automatic BCC option, we have told them to do a BCC for all emails, but sometimes they "forget".
Bud Hartley | Oregon, USA
Do you have access to Exchange server?
CRM Business Consultant