When user replies on a mail that he has received that should go to particular email id. I tried to give in DefaultEmailGenerationService.java
but it didn't reflect.
Could any one suggest how it can be achieved?
When user replies on a mail that he has received that should go to particular email id. I tried to give in DefaultEmailGenerationService.java
but it didn't reflect.
Could any one suggest how it can be achieved?
How to change fromEmail Address of an email in Hybris?
As I mentioned in the comment if you want to set from emailAddress
you can do that using Impex. Just find out what is your emailPage and set fromEmail
and fromName
.
How to set fix toAdress in Hybris for all email?
If you want to send all emails to some fix toAddress
, in that case, you need to override email
and displayName
in respective *EmailContext
of renderer template
.
Let's just assume you want to override toAddress
in customer registration flow. So here you need to find context class name form impex. Below are the renderer template for customer registration subject & body and CustomerEmailContext
is the class name which will feed all data to this renderer.Now you just need to populate those data in init
method of CustomerEmailContext.java
How to support multiple toAddress and attachments in Hybris?
To support multiple toAddress & fromAddress, ccAddresses, bccAddresses and attachments.
*EmailContext
and populate the value.generate
method of DefaultEmailGenerationService
class.emailContext
like emailContext.get("yourcustomFiled")
createEmailMessage
method in such way so you can pass all your custom fields(toAddressList, ccAddresses etc) to final DefaultEmailService