How to support multiple toAddress CC BCC and attachments in hybris email?
Scenario We want to send email to multiple addresses, also want to support the email attachments. Unfortunately, it's not happening in OOTB action. Background Hybris OOTB EmailService which is responsible to send email is supporting every field like attachments, BCC, etc. But EmailGenerationService is not populating those fields into EmailMessageModel . So good news is we only need to override generation service to feed all require data to EmailMessageModel Solution We have to define our custom attributes in BusinessProcess itemType to stores the values and access it in the later process. Also, we have to override generate method of DefaultEmailGenerationService which responsible to generate EmailMessageModel . Let's see it step by step. 1) Define custom attribute in BusinessProcessModel To do so, you have to define attributes like below in your *-items.xml file. Now build your server( ant clean al...