freescout icon indicating copy to clipboard operation
freescout copied to clipboard

Reply from the email/alias that conversation was originally created from

Open alekseyp opened this issue 5 years ago • 5 comments

My use case, that I'm able to use with other helpdesks, but not with freescout - is that I have one 'physical' mailbox with multiple aliases going to it. I would like to be able to reply using those aliases.

For example I have an email: [email protected], that has an alias [email protected]. When I create new mailbox in freescout - freescout will import them both into one mailbox (which is perfect), but then, when I reply - it will use main email configured for that mailbox as from address.

Since original email it was sent to is stored in thread table, maybe it's possible to add an option for specific mailbox to reply from multiple emails. For example if it matched the array of "alias" emails - then use alias as from email. Most SMTP servers will allow authenticating with one address and using different from (if it's an account alias)

alekseyp avatar Jul 08 '20 05:07 alekseyp

@freescout-helpdesk do you agree that this app functionality should follow how helpscout is managing mailboxes, alias and teams?

https://docs.helpscout.com/article/868-when-to-set-up-new-mailbox#shared

alekseyp avatar Jul 08 '20 18:07 alekseyp

Hello @alekseyp did you find solution ? i have the same issue and no solution from my side......

nissisb avatar Feb 02 '21 16:02 nissisb

Nope, due to the lack of communication moved to another service

alekseyp avatar Feb 13 '21 23:02 alekseyp

ok fine but which service ? @alekseyp

nissisb avatar Feb 15 '21 08:02 nissisb

We ended up with a rough workaround. Even though I wish we could have it triggered off a tag. But it is working. NOTE: You need to add the alias in the Send From account settings within gmail for it to listen.

file app/Mail/ReplyToCustomer.php https://github.com/freescout-helpdesk/freescout/blob/dist/app/Mail/ReplyToCustomer.php#L59

    if (!empty($new_headers)) {
        $this->withSwiftMessage(function ($swiftmessage) use ($new_headers) {
            if (!empty($new_headers['Message-ID'])) {
                $swiftmessage->setId($new_headers['Message-ID']);
            }
            $headers = $swiftmessage->getHeaders();
            foreach ($new_headers as $header => $value) {
                if ($header != 'Message-ID') {
                    $headers->addTextHeader($header, $value);
                }
            }

            #################################### INSERT FOR ALIAS FROM
            if(stristr($this->conversation->subject,'TEXT_IN_SUBJECT')) {
                $from = $headers->get('From');
                // find current mailbox it's sending from
                if(stristr($from->toString(),'[email protected]')) {
                    $from->setNameAddresses([
                        '[email protected]' => 'Orders - Other Company'
                    ]);
                }
                else {
                    $from->setNameAddresses([
                        '[email protected]' => 'Sales - Other Company'
                    ]);
                }
            }
            #################################### END INSERT FOR ALIAS FROM

            return $swiftmessage;
        });
    }

sideshot avatar Jun 08 '22 15:06 sideshot

What is the current functionality of Mailbox > Edit > Aliases? We was hoping that we can use this aliases as FROM address when replying in a conversation. But it seems the sender (FROM) is ALWAYS the mailbox mail-address 😢

Btw: "Aliases are other email addresses that also forward to your mailbox address. Separate each email with a comma.": this seems also not be the case. We sent an email to [email protected] (as forward/redirect to our [email protected] postbox at the mailserver), which is still processed or recognized by Freescout, but the test@ is NOT given as alias. Is it a bug?

Use-case: the mailbox e.g. is [email protected], but for personalized marketing we also having "virtual support members" like [email protected] and [email protected]. Customers which responding to such marketing mails expect an answer from Joe or Carry, which just can be any of our support staff-member/agent.

It does not make sense to create a postbox for each single "virtual support member", that is usually where aliases are for.

Moongazer avatar Apr 17 '23 07:04 Moongazer

We'll try to implement this.

freescout-helpdesk avatar Apr 17 '23 13:04 freescout-helpdesk

Implemented in the master branch.

In the mailbox settings: 2023-04-17_17-31-02

When replying: 2023-04-17_17-34-07

freescout-helpdesk avatar Apr 17 '23 14:04 freescout-helpdesk

@freescout-helpdesk wow, thanks a lot for this amazing fast implementation! Just tried it and it works like charm 👍🏼 IMO can be released and merged to dist.

Moongazer avatar Apr 17 '23 15:04 Moongazer

@freescout-helpdesk great feature, can you add the ability to change the "from" to be one of the aliases when creating a new conversation?

afawaz2 avatar Apr 23 '23 22:04 afawaz2

@freescout-helpdesk great feature, can you add the ability to change the "from" to be one of the aliases when creating a new conversation?

This is how it already works.

freescout-helpdesk avatar Apr 24 '23 05:04 freescout-helpdesk

@freescout-helpdesk when I create a new conversation I cannot change the "from". Only when replying to an existing conversation, I get the dropdown to change "from". See how my new conversation page looks like:

image

afawaz2 avatar Apr 24 '23 12:04 afawaz2

Selecting mailbox alias in a From field when creating a new conversation has been implemented in the master branch.

freescout-helpdesk avatar Apr 25 '23 06:04 freescout-helpdesk

https://github.com/freescout-helpdesk/freescout/issues/2988

freescout-helpdesk avatar May 08 '23 17:05 freescout-helpdesk