Skip to main content

Notifications

Power Automate - Using Flows
Answered

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

Posted on by 211

This flow is part of a Time Off Request app.  Originally approval emails were being sent to employees from my email address, instead of the Approver.  I made changes (see attached) to have email sent "From" the Approver and I now receive the "You are not authorized to send mail on behalf of the specified sending account." error message.  Any help would be greatly appreciated!

 

Shaguar357_0-1670418148119.png

Shaguar357_1-1670418550271.png

 

  • rkirk2k Profile Picture
    rkirk2k 280 on at
    Re: You are not authorized to send mail on behalf of the specified sending account.

    Hi @gillgamm.

    You need to be sure the account you are using for the "From" address is configured to allow you to send as them. Hope that helps.

  • gillgamm Profile Picture
    gillgamm 63 on at
    Re: You are not authorized to send mail on behalf of the specified sending account.

    I have "Send As" permissions for the "From" email I've selected but am still getting the error. Any suggestions?

  • Pstork1 Profile Picture
    Pstork1 64,050 on at
    Re: You are not authorized to send mail on behalf of the specified sending account.

    If you are the maker (owner) of the flow and your account is disabled the flow will stop functioning until a new valid owner is added.  So yes you should have an owner on the flow that will not be disabled.

  • rkirk2k Profile Picture
    rkirk2k 280 on at
    Re: You are not authorized to send mail on behalf of the specified sending account.

    Can I just change the connector on the email action to the service account? Or, are you saying that once my account is disabled (when I leave), the entire flow will not function? Thank you in advance.

  • Pstork1 Profile Picture
    Pstork1 64,050 on at
    Re: You are not authorized to send mail on behalf of the specified sending account.

    If you want to send the emails as a service account then you should be creating the flow while logged in as that servcie account. That will send the email from that account.  Using the From field will require that the user running the flow has that permission to the account.  If you are a consultant who will be leaving the company then that's another reason to create the flow while logged in as the service account.  Otherwise the flow will stop working when your account is disabled.

  • rkirk2k Profile Picture
    rkirk2k 280 on at
    Re: You are not authorized to send mail on behalf of the specified sending account.

    I am working as a consultant, and need to set this to run after I leave. We NEED the "From" address to be a service account email address. How do we setup these flows to run after I finish my contract and leave the company (and they disable my account)?

  • Verified answer
    Pstork1 Profile Picture
    Pstork1 64,050 on at
    Re: You are not authorized to send mail on behalf of the specified sending account.

    If you are going to fill in the From field then the account that is used as the security context of the flow will need Send on Behalf of permission to that mailbox.  If the flow is automated that means the maker of the flow needs that permission for every approver mailbox.  If the flow is triggered manually then every user will need that permission.  Its not practical.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,532

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,050

Leaderboard

Featured topics

Restore a deleted flow