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?
Scenario 1:
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 setfromEmail
andfromName
.Scenario 2:
If you want to send all emails to some fix
toAddress
, in that case, you need to overrideemail
anddisplayName
in respective*EmailContext
ofrenderer 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 andCustomerEmailContext
is the class name which will feed all data to this renderer.Now you just need to populate those data ininit
method ofCustomerEmailContext.java
Scenario 3:
To support multiple toAddress & fromAddress, ccAddresses, bccAddresses and attachments.
*EmailContext
and populate the value.generate
method ofDefaultEmailGenerationService
class.emailContext
likeemailContext.get("yourcustomFiled")
createEmailMessage
method in such way so you can pass all your custom fields(toAddressList, ccAddresses etc) to finalDefaultEmailService
You can find detail post here