How to make Auto-Response Email appear as a reply to the user's original email?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • IshitaRana
    Junior Member
    • Apr 2025
    • 9

    #1

    How to make Auto-Response Email appear as a reply to the user's original email?

    Hi,

    I'm trying to configure auto-response emails in EspoCRM (for example, when a Case is created via an incoming email). The auto-response gets sent correctly, but it always goes out as a new email thread.

    What I want is for the auto-response to appear as a reply to the original email the user sent, so that it stays in the same thread (i.e., same subject with Re:, and proper headers like In-Reply-To and References).

    Is there any way to achieve this behavior in EspoCRM?
    Do I need to manually set headers or is there a configuration option or extension that supports this?

    email EspoCRM Forum
  • yuri
    Member
    • Mar 2014
    • 9157

    #2
    Hi,

    The In-Reply-To header is supposed to be added for Group Email Account auto-replies.

    Here's the code: https://github.com/espocrm/espocrm/b...Fetch.php#L198

    We will check this functionality.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • yuri
      Member
      • Mar 2014
      • 9157

      #3
      Do you mean the auto-response is not related to the original email in Espo or it's not related to the thread for the sender who received that auto-response (in their email client)?
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      • yuri
        Member
        • Mar 2014
        • 9157

        #4
        Hi,

        We did some tests. Email services may intentionally not relate auto-reply emails even if the In-Reply-To is present.

        What may matter, is the subject. The subject of the auto-reply email must contain the original subject.

        You can specify the following subject for the email template you use for auto-reply:

        Code:
        Re: {Email.subject}
        In this case, both Gmail and Microsoft will preserve the reply chain.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        Working...