Integrate IMAP and SMTP clients for message sending (#14688)

Implement functionality to send messages using both IMAP and SMTP
clients, allowing for message storage in the Sent folder.

Closes #14379

---------

Co-authored-by: neo773 <neo773@protonmail.com>
Co-authored-by: neo773 <62795688+neo773@users.noreply.github.com>
This commit is contained in:
Abdul Mateen
2025-10-06 21:41:18 +05:00
committed by GitHub
parent e54aa9d925
commit a3a25aaae5
3 changed files with 49 additions and 4 deletions
@@ -50,8 +50,14 @@ export class SendEmailTool implements Tool {
workspaceId,
'connectedAccount',
);
const connectedAccount = await connectedAccountRepository.findOneBy({
id: connectedAccountId,
const connectedAccount = await connectedAccountRepository.findOne({
where: { id: connectedAccountId },
relations: {
messageChannels: {
messageFolders: true,
},
},
});
if (!isDefined(connectedAccount)) {