Hi,
I’m trying to implement a validation check when replying to an email in EspoCRM, specifically for cases where the origin is set to a particular value.
Here’s what I want to achieve:
I’ve written a before-send script to perform this check, and it seems to be picking up the case and the origin correctly. However, the validation is not working as expected — it still allows the email to be sent even when the "From" address does not match the required one.
Additional Question:
Is it possible to configure multiple outbound (sending) email addresses in EspoCRM, so that the user can reply from the same email address to which the original mail was received (especially for group email accounts)? If so, how can we manage this at the configuration?
Thanks
I’m trying to implement a validation check when replying to an email in EspoCRM, specifically for cases where the origin is set to a particular value.
Here’s what I want to achieve:
- If the parent entity of the email is a Case, and the cCaseOrigin field of that case is "Email-Unilever LD",
- Then, I want to check the original "To" email address of the received (inbound) email.
- If the inbound email was originally sent to final@example.com,
- Then any replies to that email must be sent only from the email address abc@example.com.
- If the user tries to send the reply from any other email account, I want to throw a validation error and prevent sending.
I’ve written a before-send script to perform this check, and it seems to be picking up the case and the origin correctly. However, the validation is not working as expected — it still allows the email to be sent even when the "From" address does not match the required one.
Additional Question:
Is it possible to configure multiple outbound (sending) email addresses in EspoCRM, so that the user can reply from the same email address to which the original mail was received (especially for group email accounts)? If so, how can we manage this at the configuration?
Thanks
Comment