Hi, i want to make automatic cc email to the sender when sending emails, is there a way to do so?
Only with PHP code…
Is this just for one user, or for all Emails coming out of the system? Campaigns included? and Notifications?
Hi pgr, thanks for the reply.
it will be for all emails coming out from the system, all outgoing emails will be cc to the sender and/or another email address. No Campaign included. But what is the Notifcation referring to?
Regards
Notifications are those emails automatically generated by the system when a record is assigned to a user, or when you get an invitation or a reminder for a meeting.
You can check this area of the code that I propose changing here:
https://suitecrm.com/forum/suitecrm-7-0-discussion/16507-mail-stopped-working-error-smtp-connect-failed#55682
You can do a similar wrapper and then edit to fit your purposes. Remove my logging code and just use the part (commented out in my code) where you can override mail properties before sending.
There, you can try
$this->AddCC('person1@domain.com', 'Person One');
$this->AddCC('person2@domain.com', 'Person Two');
There must be some more elegant way to do this, but this is what came to mind. Check if that code is also triggered by the notifications, I’m not sure.