Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added bcc to salesforce #5708

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

psankhe28
Copy link

What this PR does

It adds BCC to salesforce by default
Fixes issue #5700

@ragesoss
Copy link
Member

This does not add any way to enable/disable the BCC. It needs to include a UI as well.

@psankhe28
Copy link
Author

This does not add any way to enable/disable the BCC. It needs to include a UI as well.

Apologies, I wasn't aware that the UI needed to be included. I will make sure to add the UI component.

@ragesoss ragesoss marked this pull request as draft March 14, 2024 19:06
@psankhe28 psankhe28 marked this pull request as ready for review March 19, 2024 18:47
@psankhe28
Copy link
Author

By default
image

If unchecked
image

@psankhe28
Copy link
Author

@ragesoss , please review this.

Copy link
Member

@ragesoss ragesoss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the layout has room for improvement. It would be better to put the BCC checkbox at the lower right, like with the Ticket reply UI:

BCC

@@ -15,6 +15,10 @@ def email(alert)
unless @alert.sender_email.nil?
params[:bcc] = @alert.sender_email # sender_email gives user email of the sender
end
if bcc_to_salesforce && !@alert.sender_email.nil?
params[:bcc] ||= []
params[:bcc] << ENV['SALESFORCE_BCC_EMAIL']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest mirroring the implementation in ticket_notification_mailer.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have made the code changes, can you please have a look at it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants