cancel
Showing results for 
Search instead for 
Did you mean: 

CL_BCS Mail not send for CC

former_member193357
Participant
0 Kudos

Hello Experts,

I am sending the notification email in CRM using cl_bcs class and this mail should be send to "TO" and "CC" of this i am using add_recipient method of cl_bcs.

*     Add  TO recipient with its respective attributes to send request

l_recipient = cl_cam_address_bcs=>create_internet_address( l_addr-e_mail ).

                          CALL METHOD l_send_request->add_recipient
                            EXPORTING
                              i_recipient = l_recipient
                              i_express   = abap_true.

*     Add CC recipient with its respective attributes to send request

                           l_recipient = cl_cam_address_bcs=>create_internet_address( l_addr-e_mail ).

                          CALL METHOD l_send_request->add_recipient
                            EXPORTING
                              i_recipient = l_recipient
                              i_copy      = abap_true.

Now when the "TO" and "CC" email id are different then it work fine. But issues comes when "TO" and "CC" email are same then it sends the email only to "TO". In SOST also i can see only one entry. I think it somewhere check if TO and CC emails are same then it delete the entry OR is there any attribute i need to set so that mail can be send for this scenario.

Accepted Solutions (0)

Answers (2)

Answers (2)

nishantbansal91
Active Contributor
0 Kudos

This message was moderated.

0 Kudos

Hello Hemant,

If you test with the BCS example program BCS_EXAMPLE_4, you can see that

duplicate recipient will be removed.

This is a standard behavior.

Thanks & Regards,

Rajesh