Override Group Email FROM address in replies

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Stopgap
    Junior Member
    • May 2026
    • 1

    #1

    Override Group Email FROM address in replies

    When replying to mail in a Group Email mailbox, espoCRM does not set the FROM address to the mail box address, at least as far as I can tell.
    It does however allow selection of that address from a dropdown, but this is not ideal and prone to user error.

    I am not using a personal email address as a fall back, and don't really want to - I would prefer the conversation remains with the group.

    So, on the assumption that this is no simple fix for this, I embarked down a rabbit hole of trying to override the record and modal compose views. I get the scripts to trigger ok, but no matter what method I use, I cannot seem to override the "from" address. Perhaps it's not doable, or I'm using the wrong patterns (this.model.set() or recordView.model.set())

    Any help will be much appreciated.
  • rabii
    Active Community Member
    • Jun 2016
    • 1400

    #2
    I am not really sure i understood what you described as issue above. but have you looked at the option (Exclude from Reply) on your group email account setting. see attached screenshot - it might help

    Click image for larger version

Name:	Screenshot 2026-05-14 084746.png
Views:	0
Size:	62.8 KB
ID:	126346
    Rabii
    EspoCRM Custom Development

    🔗 Portfolio & Builds

    Comment


    • Stopgap
      Stopgap commented
      Editing a comment
      Thanks Rabii.

      So, by way of example, if I receive an email into "support@domain.com" and I reply to that email, espo adds "support@domain.com" to the "CC" field, but not the "FROM" field, which is populated by the first address in the dropdown list.

      Exclude from Reply stops the address being applied to "CC", but the FROM address behaviour does not change.

    • rabii
      rabii commented
      Editing a comment
      I guess there was a discussion about this sometimes ago and conclusion is that espocrm is built around sending emails from default personal email even when user reply to a group email account email. I guess Kharg's extension would be a solution for your issue.
  • Kharg
    Senior Member
    • Jun 2021
    • 505

    #3
    Maybe this can help: https://github.com/Kharg/from-address-behavior

    Comment


    • Stopgap
      Stopgap commented
      Editing a comment
      Thanks Kharg, I'll take a look and see if it's suitable.
Working...