Want to pre populate to, cc, subject, body by passing values to query parameters of outlook on the web deep link

Anonymous
2024-03-27T06:33:52+00:00

In our react application we are integrating outlook on the web email creation. For that we are using
https://outlook.office.com/?path=/mail/action/compose&to=test1@example.com,test2@example.com?cc=test3@example.com&subject=subject&body=body&&online=1 url to generate the email.

Right now the url is getting converted to https://outlook.office.com/mail/deeplink/compose?to=test1@example.com,test2@example.com%3Fcc%3Dtest3@example.com&subject=subject&body=body&online=1

All the fields are populating correctly.

But one issue we are facing when session is getting expire. After session expire, if we are generating email then cc, subject, body fields are not pre-populating.

I tried with replacing ? before cc with & but that is giving two issues.

  1. cc field is not populating for any of the email
  2. After session expire we are getting error

If some body can suggest any other ways to over come these issues that will be helpful.

Outlook | Web | Outlook.com | Email

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2024-03-29T16:20:51+00:00

    Thank you for giving clarity on the issue.

    Given that the problem occurs to any device or Outlook.com account, we recommend in reporting this issue to the dedicated support team in the Outlook online Platform focused on researching Outlook.com online server and have richer experience and knowledge with them, it's also recommended to contact In-App Support directly for checking into your account for deeper investigation:

    Go to https://outlook.live.com and sign into your account.

    Click the Help tab.

    Select Help on the ribbon.

    In the Help pane on the right side of the search box, type Contact Support.

    Click the Yes button below the "Still need help?" prompt.

    Click the Chat with a support representative option and follow the on-screen instructions.

    I am honored to be part of this journey of yours.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-03-28T05:54:56+00:00

    Hello Bryll,

    thanks for you reply.

    So regarding your question.

    After session expire, if we are generating email then cc, subject, body fields are not pre-populating for the first time. If we are generating after first try, everything working perfectly.

    This issue is not limited to any particular account or device. It's happening for all.

    I tried to replace the url itself. When I am using https://outlook.office.com/mail/deeplink/compose?to=test1@example.com,test2@example.com?cc=test3@example.com&subject=email%20subject&body=email%20body&&online=1

    ![](https://learn-attachment.microsoft.com/api/attachments/8647c6a3-5fdb-4024-a537-2bfd29bcc54c?platform=QnA

    I am able to get ride of two issue

    1. cc field is not populating for any of the email
    2. After session expire we are getting error

    But again if u will observe the screenshot in subject and body spaces are getting replaced with + sign.

    This issue is happening when session is getting expire or when we will manually sign out and generate mail using the above url for the first time only.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2024-03-28T02:33:30+00:00

    Hi Sushil, this is Bryll

    Thank you for taking the time to write us in the Microsoft Community.

    I would love to give some troubleshooting steps to fix your concern. However, we may first have to wait for the answers to below questions to ensure that we understand your concern correctly and that we can provide the necessary guidance.

    Can we verify if the issue is specific to a single Outlook.com/Hotmail.com email account? Additionally, is the problem occurring when using an alternative web browser or on another device?

    How are you

    Lastly, can you share a screenshot of the problem?

    Best regards,

    Bryll

    Community Moderator

    Was this answer helpful?

    0 comments No comments