diff --git a/CHANGELOG.md b/CHANGELOG.md index 5863fea..7679860 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ and this project adheres to ### Fixed +- 🐛(mailbox) fix activate mailbox feature - 🔧(helm) fix the configuration environment #579 ## [1.7.1] - 2024-11-28 diff --git a/src/backend/mailbox_manager/utils/dimail.py b/src/backend/mailbox_manager/utils/dimail.py index 9aac14b..e8d8b41 100644 --- a/src/backend/mailbox_manager/utils/dimail.py +++ b/src/backend/mailbox_manager/utils/dimail.py @@ -375,7 +375,12 @@ class DimailAPIClient: """Send a request to enable a mailbox to dimail API""" response = session.patch( f"{self.API_URL}/domains/{mailbox.domain.name}/mailboxes/{mailbox.local_part}", - json={"active": "yes"}, + json={ + "active": "yes", + "givenName": mailbox.first_name, + "surName": mailbox.last_name, + "displayName": f"{mailbox.first_name} {mailbox.last_name}", + }, headers=self.get_headers(user_sub), verify=True, timeout=10,