#Bug Report: OUTLOOK_CREATE_DRAFT_REPLY sets incorrect from address

14 messages · Page 1 of 1 (latest)

fringe juniper
#

The OUTLOOK_CREATE_DRAFT_REPLY tool sets the from and sender fields to Composio's internal OAuth identifier (e.g., [email protected]) instead of the user's actual Outlook mailbox address (e.g., [email protected]).

Impact
Critical: When the draft is sent, recipients cannot reply - they get "address not found" errors
he email appears to come from a non-existent address
Breaks email threading and reply functionality entirely

Reproduction
Log ID: log_tsZwOjP4chRi

Request:
{
"user_id": "me",
"message_id": "AQMkADAwATMwMAItNzAxMQAtZGViNy0wMAItMDAKAEYAAAOnTLQ4O_DCTKxTp-xMkYEbBwAwPFcdpakhSKrGJQIFjdFsAAACAQkAAAAwPFcdpakhSKrGJQIFjdFsAAHakADrAAAA"
}

Response (problematic fields):
{ "from": { "emailAddress": { "address": "[email protected]", // ❌ WRONG - internal ID "name": "Alvaro Vargas" } }, "sender": { "emailAddress": { "address": "[email protected]", // ❌ WRONG - internal ID "name": "Alvaro Vargas" } }}

Expected:
{ "from": { "emailAddress": { "address": "[email protected]", // ✅ Actual mailbox address "name": "Alvaro Vargas" } }}

Evidence in Thread
The HTML body shows the actual email ([email protected]) was correctly used in previous messages, but the draft reply uses the internal ID:

From: Alvaro Vargas [email protected] ← Correct (previous message)
...
href="mailto:[email protected]" ← Wrong (draft reply)

From: Alvaro Vargas [email protected] ← Correct (previous message)...href="mailto:[email protected]" ← Wrong (draft reply)

pastel hazel
#

We tired it on our end and seems to be working fine. Tool version: ⁨20260130_00⁩. Could you re-try and lmk?

fringe juniper
#

here is a full demo of what's happening @pastel hazel

#

for context .. i'm signing in to my MSFT account with my frontline email, but I use an outlook address for outlook

#

The flow is:

  1. Send an email from Gmail --> Outlook
  2. Our app labels the email as toRespond and created a draft using the "CREATE_DRAFT_REPLY" tool
  3. User send the fresh draft from Outlook (with a wrong from email)
  4. User responds on Gmail to a wrong to address (fails)

Tested in Composio playground using the same message ID to ensure our app wasn't doing anything funky, and got the same result

pastel hazel
#

Hey @fringe juniper, we followed the exact steps mentioned and were unable to reproduce the issue. I've also added few attachments for your ref. Could you lmk if we missed any step?

fringe juniper
#

@pastel hazel thanks for sharing. I think the issue might be related to the fact i've signed up using a google workspace address to microsoft? But have an email address for outlook? This is the execute tool payload from your playground:

Sender is listed as:

"sender": {
  "emailAddress": {
    "address": "[email protected]",
    "name": "Alvaro Vargas"
  }
},

{
"data": {
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('outlook_85722695C2D23DF9%40outlook.com')/messages/$entity",
"@odata.etag": "W/"CQAAABYAAAAwPFcdpakhSKrGJQIFjdFsAAHbWFJj"",
"bccRecipients": [],
"body": {
......
"bodyPreview": "This is the Body\r\n________________________________\r\nFrom: Alvaro Vargas Manini [email protected]\r\nSent: Monday, February 2, 2026 11:34:55 AM\r\nTo: [email protected] [email protected]\r\nSubject: Plane Arriving Late\r\n\r\nFYI",
"categories": [],
"ccRecipients": [],
"changeKey": "CQAAABYAAAAwPFcdpakhSKrGJQIFjdFsAAHbWFJj",
"conversationId": "AQQkADAwATMwMAItNzAxMQAtZGViNy0wMAItMDAKABAAKuXEy-wuoUGgz0N-fwAhiYA=",
"conversationIndex": "AQHclDf8KuXEy/wuoUGgz0N/fyGJgLVvSFT+",
"createdDateTime": "2026-02-02T11:37:59Z",
"flag": {
"flagStatus": "notFlagged"
},
"from": {
"emailAddress": {
"address": "[email protected]",
"name": "Alvaro Vargas"
}
},
"hasAttachments": false,
.........
"log_id": "log_206z5MnEJqEm"
}

pastel hazel
#

@fringe juniper, “I believe the issue might stem from signing up using a Google Workspace address for Microsoft. However, do you have an email address for Outlook?” — This could be a potential reason. Could you try using ⁨OUTLOOK_GET_PROFILE⁩ and confirm if you see ⁨[email protected]⁩. If not, this could be the cause.

fringe juniper
#

Ok I fixed it! When you sign up to outlook using a google workspace account, it creates an alias and sets it up as the primary address. I changed the primary address and sign up preferences to my outlook email and it worked @pastel hazel thanks!

fringe juniper
#

@pastel hazel when using:

OUTLOOK_GET_MAILBOX_SETTINGS - log_I28HhaQFbVw3
OUTLOOK_GET_PROFILE - log_jQZ_Y7W_yOpw

I can't get my outlook address, just the email used for sign up. Is there reliable way to get the user's email address for the connected account? - i can open a different thread if it's better

pastel hazel
#

@fringe juniper, did you mean proxy addresses?

fringe juniper
#

yes

pastel hazel
#

I understand. We’ll add the field. It’ll also make tracking changes easier with newer threads, but it should be fine for now.