How to set Auto-Submitted email header sending email via GRAPH API

Dmytro Gurevych 1 Reputation point
2021-03-22T14:48:31.903+00:00

Hello,

Using the GRAPH API (NodeJs), I need to send automatically generated emails (generated by my application).
According to the RFC-3834, auto generated emails should have the Auto-Submitted email header set.
How to I can achieve that? Seems the GRAPH API allows setting the custom X-/x- email headers only...

Thank you in advance!
Dmitry

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,720 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jason He 1 Reputation point
    2021-11-25T22:39:08.827+00:00

    We are facing same issue as well, to setup Auto-Submitted email. @Anonymous

    Since graph API to send email can be used by Flow (Power Automate) or any other code to triger automated email. What we don't want is email loop been caused when email sent out by automation.

    We could technically use X-Autoreply, X-Autorespond, X-Autoresponder. But more align with RFC-3834 is better. Since there will be more bots supporting Auto-Submitted than X- prefix one.

    For example Zendesk, FuseDesk, those ticketing system are ignoring email with those header to avoid infinite email loop.

    This is as simple as telling receiver, this email is notification email, generated by code not by human. Do not respond with out of office, or new ticket from ticketing system etc.

    I know some may suggest no-reply email to send email, for us we are trying to send email on behalf of user, we want human to reply not bot to reply. That's why we are looking to add this header.