Action Send an email failed

%3CLINGO-SUB%20id%3D%22lingo-sub-843964%22%20slang%3D%22en-US%22%3EAction%20Send%20an%20email%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-843964%22%20slang%3D%22en-US%22%3E%3CP%3EI%20made%20a%20flow%20that%20sends%20an%20email%20when%20a%20form%20is%20submitted.%20I%20didn't%20share%20the%20form%2C%20but%20I%20made%20it%20available%20for%20colleagues%20in%20a%20tab%20in%20a%20team%20on%20MS%20Teams.%20Worked%20perfectly%20fine%2C%20but%20it%20used%20my%20email%20address%20as%20the%20sender%20address%20regardless%20of%20the%20responder.%20In%20the%20text%20field%20of%20the%20mail%20where%20I%20used%20the%20dynamic%20content%20%E2%80%98Responders'%20email%E2%80%99%20it%20showed%20the%20address%20of%20the%20responder.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20I%20filled%20the%20%E2%80%98Send%20As%E2%80%99%20field%20in%20the%20advanced%20section%20of%20the%20%E2%80%98Send%20an%20email%E2%80%99%20part%20of%20the%20flow%20with%20the%20dynamic%20content%20%E2%80%98Responders'%20email%E2%80%99.%3C%2FP%3E%3CP%3EWithin%20the%20forms%20configuration%20I%20specified%20that%20only%20persons%20in%20my%20organization%20may%20respond.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20when%20I%20submit%20the%20form%20it%20fills%20in%20%E2%80%98Anonymous%E2%80%99%20instead%20of%20my%20email%20address%20in%20the%20tekst%20field%20of%20the%20email.%3C%2FP%3E%3CP%3EWhen%20someone%20else%20(a%20colleague)%20fills%20in%20the%20form%20the%20%E2%80%98Send%20an%20email%E2%80%99%20part%20of%20the%20flow%20gives%20an%20error%20end%20the%20mail%20isn't%20sent%20at%20all.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20error%20it%20gives%20is%3A%3C%2FP%3E%3CP%3E%E2%80%98You%20are%20not%20authorized%20to%20send%20mail%20on%20behalf%20of%20the%20specified%20sending%20account.%3C%2FP%3E%3CP%3EclientRequestId%3A%20bc2d3900-c504-467e-a8d5-4e2f8dd02967%3C%2FP%3E%3CP%3EserviceRequestId%3A%204bea73ed-a0b6-45a8-8983-4b22a66a6d8d%E2%80%99%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20am%20I%20doing%20wrong%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-843964%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Forms%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-844237%22%20slang%3D%22en-US%22%3ERe%3A%20Action%20Send%20an%20email%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-844237%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F405767%22%20target%3D%22_blank%22%3E%40Huub_Jonker%3C%2FA%3E%2C%20a%20flow%20will%20always%20send%20the%20email%20from%20you%20as%20the%20creator%20of%20the%20flow%20if%20you%20use%20the%20%22Send%20an%20email%20(v2)%22%20action.%20If%20you%20use%20the%20%22Send%20an%20email%20notification%20(v3)%22%20action%20it%20will%20send%20the%20email%20from%20%22Microsoft%20PowerApps%20and%20Flow%22.%20There%20aren't%20any%20other%20options%20currently.%3C%2FP%3E%3CP%3ERob%3CBR%20%2F%3ELos%20Gallardos%3CBR%20%2F%3EMicrosoft%20Flow%20Community%20Super%20User%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-846561%22%20slang%3D%22en-US%22%3ERe%3A%20Action%20Send%20an%20email%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-846561%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F405767%22%20target%3D%22_blank%22%3E%40Huub_Jonker%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20addition%20to%20what%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F174092%22%20target%3D%22_blank%22%3E%40Rob%20Elliott%3C%2FA%3E%26nbsp%3Bhas%20said%2C%20you%20also%20have%20another%20option%20which%20is%20to%20use%20%3CSTRONG%3ESend%20an%20email%20from%20a%20shared%20mailbox%20(V2)%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBasically%20if%20you%20have%20full%20access%20to%20a%20Shared%20mailbox%2C%20you%20can%20have%20emails%20sent%20from%20that%20email%20address%20instead%20of%20from%20your%20own%20account.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20do%20this%20for%20all%20my%20flows%20and%20have%20it%20come%20from%20a%20general%20mailbox%20address%20(e.g.%20workflow%40companyname.com)%20which%20keeps%20all%20comms%20in%20that%20mailbox%20as%20well.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOnce%20you%20have%20permissions%2C%20in%20Mailbox%20Address%2C%20just%20use%20enter%20the%20shared%20mailbox%20email%20and%20you%20are%20good%20to%20go.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20605px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F130938i6BB809DBEF57E32C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%221.png%22%20title%3D%221.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWell%20worth%20a%20look%20if%20you%20can%20organised%20a%20Shared%20mailbox%20to%20work%20out%20of.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%3C%2FP%3E%3CP%3EDamien%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

I made a flow that sends an email when a form is submitted. I didn't share the form, but I made it available for colleagues in a tab in a team on MS Teams. Worked perfectly fine, but it used my email address as the sender address regardless of the responder. In the text field of the mail where I used the dynamic content ‘Responders' email’ it showed the address of the responder.

 

So I filled the ‘Send As’ field in the advanced section of the ‘Send an email’ part of the flow with the dynamic content ‘Responders' email’.

Within the forms configuration I specified that only persons in my organization may respond.

 

Now when I submit the form it fills in ‘Anonymous’ instead of my email address in the tekst field of the email.

When someone else (a colleague) fills in the form the ‘Send an email’ part of the flow gives an error end the mail isn't sent at all.

 

The error it gives is:

‘You are not authorized to send mail on behalf of the specified sending account.

clientRequestId: bc2d3900-c504-467e-a8d5-4e2f8dd02967

serviceRequestId: 4bea73ed-a0b6-45a8-8983-4b22a66a6d8d’

 

What am I doing wrong?

2 Replies
Highlighted

Hi, @Huub_Jonker, a flow will always send the email from you as the creator of the flow if you use the "Send an email (v2)" action. If you use the "Send an email notification (v3)" action it will send the email from "Microsoft PowerApps and Flow". There aren't any other options currently.

Rob
Los Gallardos
Microsoft Flow Community Super User

Highlighted

Hi @Huub_Jonker 

 

In addition to what @Rob Elliott has said, you also have another option which is to use Send an email from a shared mailbox (V2).

 

Basically if you have full access to a Shared mailbox, you can have emails sent from that email address instead of from your own account. 

 

I do this for all my flows and have it come from a general mailbox address (e.g. workflow@companyname.com) which keeps all comms in that mailbox as well.

 

Once you have permissions, in Mailbox Address, just use enter the shared mailbox email and you are good to go. 

 

1.png

 

Well worth a look if you can organised a Shared mailbox to work out of.

 

Cheers

Damien