Sending email in SAP Commerce(Hybris)

  1. Send email;
  2. Send email with attachments;
  3. Send email to multiple addresses.

Sending email in SAP Commerce(Hybris)

  1. As a first step we create item type which extends StoreFrontCustomerProcess(or just StoreFrontProcess):

Sending email with attachments

  1. As we already have OOTB EmailAttachment itemType, we can use it for emailAttachments attribute. So, first we create a one-to-many(1..n) relation between BusinessProcessModel and EmailAttachmentModel in our *-item.xml.

Sending email to multiple addresses

  1. We define attribute in BusinessProcessModel — we can use String collection for toAddresses, ccAddresses and bccAddresses:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store