Showing posts with the label email

How to change fromEmail Address of an email in Hybris?

If you want to reset or change from emailAddress for Hybris email, you can do that using Impex.
You need to find emailPage for your email. then you can set or change fromEmail and fromName like below. # Email Pages UPDATE EmailPage ; $contentCV[unique=true] ; uid[unique=true] ; fromEmail[lang=$lang] ; fromName[lang=$lang] ; ; CustomerRegistrationEmail ; "" ; "Customer Services Team" ; ; DeliverySentEmail ; "" ; "Customer Support Team" ; ; ForgottenPasswordEmail ; "" ; "Customer Services Team"

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