Send mail to helpdesk from responder mail after submitting MS Forms

%3CLINGO-SUB%20id%3D%22lingo-sub-2374925%22%20slang%3D%22en-US%22%3ESend%20mail%20to%20helpdesk%20from%20responder%20mail%20after%20submitting%20MS%20Forms%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2374925%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20everyone%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20the%20following%20situation%3A%3C%2FP%3E%3CP%3EWe%20are%20using%20Jira%20as%20helpdesk.%26nbsp%3B%3C%2FP%3E%3CP%3EUsers%20can%20create%20helpdesk%20tickets%20when%20they%20send%20a%20mail%20to%20%3CA%20href%3D%22mailto%3Ahelpdesk%40..%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehelp%40..%3C%2FA%3E.%3C%2FP%3E%3CP%3EAfter%20that%20they%20get%20a%20mail%20from%20jira%2C%20with%20access%20to%20their%20ticket.%20The%20it%20admins%20can%20also%20respond%20to%20the%20ticket%20creator%2C%20to%20get%20further%20information.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20lot%20of%20our%20user%20don't%20understand%20this.%20We%20get%20a%20lot%20of%20duplicated%20mails%20and%20mails%20with%20missing%20information.%26nbsp%3B%3CBR%20%2F%3ECause%20we%20don't%20want%20to%20create%20jira%20accounts%20for%20all%20our%20users%2C%20we%20now%20tried%20to%20use%20MS%20Forms.%3C%2FP%3E%3CP%3EWe%20try%20to%20use%20PowerAutomate%20to%20send%20a%20mail%20to%26nbsp%3B%3CA%20href%3D%22mailto%3Ahelpdesk%40..%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehelp%40..%3C%2FA%3E.%20after%20the%20responder%20submitted%20his%20answers.%3C%2FP%3E%3CP%3EAs%20I%20explained%20it%20is%20necessary%20to%20send%20these%20mails%20with%20the%20responder%20mail.%20Otherwise%20the%20users%20with%20problems%20will%20not%20get%20the%20jira%20mail%2C%20that%20a%20ticket%20was%20created%20and%20our%20it%20admins%20can%20not%20respond%20to%20their%20tickets.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSTRONG%3EProblem%3A%20Flow%20failed.%20You%20are%20not%20authorized%20to%20send%20mail%20on%20behalf%20of%20the%20specified%20sending%20account.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3E%7B%0A%20%20%22status%22%3A%20403%2C%0A%20%20%22message%22%3A%20%22You%20are%20not%20authorized%20to%20send%20mail%20on%20behalf%20of%20the%20specified%20sending%20account.%5Cr%5CnclientRequestId%3A%20d45fd15f-1758-4eea-82d5-1ed94570cf13%5Cr%5CnserviceRequestId%3A%203bde0f4e-b927-467d-b94c-e1ac912ac7f0%22%2C%0A%20%20%22error%22%3A%20%7B%0A%20%20%20%20%22message%22%3A%20%22You%20are%20not%20authorized%20to%20send%20mail%20on%20behalf%20of%20the%20specified%20sending%20account.%22%2C%0A%20%20%20%20%22code%22%3A%20%22ErrorSendAsDenied%22%2C%0A%20%20%20%20%22originalMessage%22%3A%20%22The%20user%20account%20which%20was%20used%20to%20submit%20this%20request%20does%20not%20have%20the%20right%20to%20send%20mail%20on%20behalf%20of%20the%20specified%20sending%20account.%2C%20Cannot%20submit%20message.%22%0A%20%20%7D%2C%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSTRONG%3EI%20have%20already%20read%20through%20a%20lot%20of%20similar%20questions%2C%20but%20actually%20I%20didn't%20find%20a%20solution.%26nbsp%3B%3C%2FSTRONG%3E%3C%2FDIV%3E%3CDIV%3E%3CSTRONG%3EIs%20there%20any%20solution%20to%20this%3F%26nbsp%3B%3C%2FSTRONG%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2374925%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Ehelpdesk%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2375047%22%20slang%3D%22en-US%22%3ERe%3A%20Send%20mail%20to%20helpdesk%20from%20responder%20mail%20after%20submitting%20MS%20Forms%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2375047%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1059752%22%20target%3D%22_blank%22%3E%40Sebo12354%3C%2FA%3E%26nbsp%3BThe%20flow%20either%20needs%20to%20use%20the%20%22send%20an%20email%20(v2)%22%20action%20which%20will%20go%20from%20the%20creator's%20email%20address%2C%20the%20%22send%20an%20email%20from%20a%20shared%20mailbox%22%20where%20the%20creator%20of%20the%20flow%20needs%20to%20have%20full%20send%20privileges%2C%20or%20use%20the%20%22send%20an%20email%20notification%20(v3)%22%20and%20in%20that%20case%20the%20email%20goes%20from%20Microsoft%20(but%20you%20can%20only%20send%20100%20emails%20in%20any%20rolling%2024%20hour%20period).%20In%20my%20company%20we%20always%20use%20the%20shared%20mailbox%20option.%20You'll%20need%20to%20check%20the%20flow%20creator's%20permissions%20as%20the%20message%20is%20clear%20that's%20where%20the%20problem%20is.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERob%3CBR%20%2F%3ELos%20Gallardos%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%20color%3D%22%23006400%22%3EMicrosoft%20Power%20Automate%20Community%20Super%20User%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2375099%22%20slang%3D%22en-US%22%3ERe%3A%20Send%20mail%20to%20helpdesk%20from%20responder%20mail%20after%20submitting%20MS%20Forms%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2375099%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F174092%22%20target%3D%22_blank%22%3E%40RobElliott%3C%2FA%3E%26nbsp%3Bthx%20for%20your%20reply.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20you%20can%20see%20I%20am%20already%20using%20Send%20an%20email%20V2.%20If%20I%20use%20Responders%20Mail%20like%20in%20my%20screenshot%20then%20I%20am%20getting%20the%20error%20message.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sebo12354_0-1621588010288.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F282618i6981F762B65E4934%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Sebo12354_0-1621588010288.png%22%20alt%3D%22Sebo12354_0-1621588010288.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%22send%20an%20email%20from%20a%20shared%20mailbox%22%3A%20What%20does%20that%20mean%3F%20That%20all%20users%20can%20see%20the%20mails%20of%20other%20people%3F%20Do%20I%20have%20to%20use%20this%20account%20to%20create%20the%20flow%3F%3CBR%20%2F%3EI%20have%20not%20that%20much%20experience%20with%20this%20stuff%20%3A)%3C%2Fimg%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2375221%22%20slang%3D%22en-US%22%3ERe%3A%20Send%20mail%20to%20helpdesk%20from%20responder%20mail%20after%20submitting%20MS%20Forms%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2375221%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1059752%22%20target%3D%22_blank%22%3E%40Sebo12354%3C%2FA%3E%26nbsp%3Byou%20can't%20use%20the%20Responder's%20email%20as%20the%20send%20as%20because%20you%20won't%20-%20and%20never%20will%20have%20-%20permission%20to%20send%20on%20behalf%20of%20that%20user.%20I%20recommend%20you%20get%20your%20IT%20people%20to%20set%20up%20a%20shared%20mailbox%20in%20Outlook%20that%20you%20and%20others%20in%20your%20team%20have%20permissions%20to%20send%20from.%20It's%20just%20a%20normal%20mailbox%20but%20not%20assigned%20to%20a%20single%20user.%20Others%20won't%20be%20able%20to%20see%20the%20emails%20there.%20The%20advantage%20if%20a%20shared%20mailbox%20is%20that%20if%20you%20leave%20the%20company%20the%20flow%20will%20continue%20to%20work.%20You%20should%20also%20give%20someone%20else%20co-ownership%20of%20the%20flow%20for%20the%20same%20reason.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20do%20this%20for%20our%20IT%20ticketing%20system%20which%2C%20instead%20of%20Jira%2C%20we%20manage%20in%20SharePoint.%20An%20earlier%20part%20of%20this%20flow%20creates%20the%20item%20in%20the%20list%2C%20gets%20the%20ID%20and%20emails%20the%20responder%20with%20the%20details%20of%20what%20they%20submited%20together%20with%20the%20ticket%20(ID)%20number%20for%20follow-up%20later.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22triageEmail.png%22%20style%3D%22width%3A%20627px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F282628iB89B6DA95287578C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22triageEmail.png%22%20alt%3D%22triageEmail.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ERob%3CBR%20%2F%3ELos%20Gallardos%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%20color%3D%22%23006400%22%3EMicrosoft%20Power%20Automate%20Community%20Super%20User%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2444737%22%20slang%3D%22en-US%22%3ERe%3A%20Send%20mail%20to%20helpdesk%20from%20responder%20mail%20after%20submitting%20MS%20Forms%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2444737%22%20slang%3D%22en-US%22%3EHi%20Rob%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20don't%20get%20it%20%3A)%3C%2Fimg%3E%3CBR%20%2F%3EI%20created%20a%20SHARED%20MAILBOX%20(for%20example%20shared%40test.com).%20I%20created%20a%20formular%20with%20the%20admin%20account.%20I%20created%20the%20flow%20with%20the%20admin%20account.%20I%20gave%20the%20permissions%20to%20send%20and%20read%20from%20SHARED%20MAILBOX%20to%20this%20admin%20account%20and%20to%20my%20own%20account.%3CBR%20%2F%3EIn%20the%20flow%20I%20used%20the%20shared%40test.com%20in%20the%20%22From%20(Send%20as)%22%20field.%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20the%20last%20version%20I%20used%20the%20admin%20account%20in%20this%20field%20and%20it%20was%20working%2C%20but%20then%20the%20customers%20that%20are%20creating%20the%20tickets%20have%20no%20access%20and%20our%20IT%20guys%20can%20also%20not%20respond%20to%20these%20tickets.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%3CBR%20%2F%3ESebastian%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi everyone,

I have the following situation:

We are using Jira as helpdesk. 

Users can create helpdesk tickets when they send a mail to help@...

After that they get a mail from jira, with access to their ticket. The it admins can also respond to the ticket creator, to get further information.

 

A lot of our user don't understand this. We get a lot of duplicated mails and mails with missing information. 
Cause we don't want to create jira accounts for all our users, we now tried to use MS Forms.

We try to use PowerAutomate to send a mail to help@... after the responder submitted his answers.

As I explained it is necessary to send these mails with the responder mail. Otherwise the users with problems will not get the jira mail, that a ticket was created and our it admins can not respond to their tickets. 

Problem: Flow failed. You are not authorized to send mail on behalf of the specified sending account.

 

{
  "status": 403,
  "message": "You are not authorized to send mail on behalf of the specified sending account.\r\nclientRequestId: d45fd15f-1758-4eea-82d5-1ed94570cf13\r\nserviceRequestId: 3bde0f4e-b927-467d-b94c-e1ac912ac7f0",
  "error": {
    "message": "You are not authorized to send mail on behalf of the specified sending account.",
    "code": "ErrorSendAsDenied",
    "originalMessage": "The user account which was used to submit this request does not have the right to send mail on behalf of the specified sending account., Cannot submit message."
  },

 

 
 
I have already read through a lot of similar questions, but actually I didn't find a solution. 
Is there any solution to this? 

 

4 Replies

@Sebo12354 The flow either needs to use the "send an email (v2)" action which will go from the creator's email address, the "send an email from a shared mailbox" where the creator of the flow needs to have full send privileges, or use the "send an email notification (v3)" and in that case the email goes from Microsoft (but you can only send 100 emails in any rolling 24 hour period). In my company we always use the shared mailbox option. You'll need to check the flow creator's permissions as the message is clear that's where the problem is.

 

Rob
Los Gallardos
Microsoft Power Automate Community Super User

@RobElliott thx for your reply.

 

As you can see I am already using Send an email V2. If I use Responders Mail like in my screenshot then I am getting the error message.

Sebo12354_0-1621588010288.png

 

"send an email from a shared mailbox": What does that mean? That all users can see the mails of other people? Do I have to use this account to create the flow?
I have not that much experience with this stuff :)

 

@Sebo12354 you can't use the Responder's email as the send as because you won't - and never will have - permission to send on behalf of that user. I recommend you get your IT people to set up a shared mailbox in Outlook that you and others in your team have permissions to send from. It's just a normal mailbox but not assigned to a single user. Others won't be able to see the emails there. The advantage if a shared mailbox is that if you leave the company the flow will continue to work. You should also give someone else co-ownership of the flow for the same reason.

 

We do this for our IT ticketing system which, instead of Jira, we manage in SharePoint. An earlier part of this flow creates the item in the list, gets the ID and emails the responder with the details of what they submited together with the ticket (ID) number for follow-up later.

triageEmail.png

Rob
Los Gallardos
Microsoft Power Automate Community Super User

Hi Rob,

I don't get it :)
I created a SHARED MAILBOX (for example shared@test.com). I created a formular with the admin account. I created the flow with the admin account. I gave the permissions to send and read from SHARED MAILBOX to this admin account and to my own account.
In the flow I used the shared@test.com in the "From (Send as)" field.

In the last version I used the admin account in this field and it was working, but then the customers that are creating the tickets have no access and our IT guys can also not respond to these tickets.

Thanks
Sebastian