Flow - Email To Address Display Name

%3CLINGO-SUB%20id%3D%22lingo-sub-160109%22%20slang%3D%22en-US%22%3EFlow%20-%20Email%20To%20Address%20Display%20Name%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-160109%22%20slang%3D%22en-US%22%3E%3CP%3ESteps%20to%20reproduce%20the%20Issue%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ECreate%20an%20email%20pbidistro%40domain.com%3C%2FLI%3E%0A%3CLI%3ESet%20the%20name%20on%20the%20email%20as%20%22PBI%20Distro%22%3C%2FLI%3E%0A%3CLI%3EFrom%20Flow%20send%20email%20using%20SMTP%26nbsp%3Bor%20Gmail%20action.%3C%2FLI%3E%0A%3CLI%3EReceive%20email%20with%20Display%20Name%20as%20%3CFONT%20color%3D%22%23ff0000%22%3Epbidistro%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EIn%20SMTP%20action%2C%20we%20have%20also%20tried%20the%20following%20in%20From%20field%3A%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%22PBI%20Distro%20%3CPBIDISTRO%3E%22%3C%2FPBIDISTRO%3E%3C%2FLI%3E%0A%3CLI%3E%22PBI%20Distro%20(PBIDistro%40domain.com)%22%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESo%2C%20is%20there%20a%20way%20to%20edit%20%22Display%20Name%22%20while%20sending%20an%20email%20through%20flow%3F%3C%2FP%3E%0A%3CP%3EWe%20want%20to%20make%20sure%20the%20email's%20%22Display%20Name%22%20looks%20pretty%20when%20user%20receives%20the%20email.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-160109%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EGmail%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPower%20BI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESMTP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-321276%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20-%20Email%20To%20Address%20Display%20Name%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-321276%22%20slang%3D%22en-US%22%3EFlow%20runs%20successfully.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-321275%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20-%20Email%20To%20Address%20Display%20Name%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-321275%22%20slang%3D%22en-US%22%3EI%20created%20the%20flow%20today%2C%20it's%20working%20fine.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-321272%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20-%20Email%20To%20Address%20Display%20Name%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-321272%22%20slang%3D%22en-US%22%3EWe'll%20test%20again.%3CBR%20%2F%3EWhen%20did%20you%20first%20saw%20this%20work%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-321265%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20-%20Email%20To%20Address%20Display%20Name%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-321265%22%20slang%3D%22en-US%22%3ECame%20across%20this%20post%20looking%20for%20the%20answer%2C%20so%20I'll%20post%20what%20worked%20for%20me.%3CBR%20%2F%3E%3CBR%20%2F%3EUse%20the%20SMTP%20Connector.%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20your%20flow%2C%20initialize%20a%20variable%2C%20name%20it%20whatever%20you%20want%2C%20set%20the%20initial%20value%20to%20Test%3CTEST%3E%20don't%20use%20quotes%2C%20obviously%20change%20this%20to%20be%20whatever%20you%20want%20to%20use%20as%20your%20From%20email%20address.%20Then%20in%20the%20send%20email%20action%2C%20choose%20the%20variable%20as%20your%20From%20email%20address%20and%20it%20works%20like%20a%20charm.%3C%2FTEST%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1171104%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20-%20Email%20To%20Address%20Display%20Name%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1171104%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F268853%22%20target%3D%22_blank%22%3E%40NLT-FlowAdmin%3C%2FA%3E%26nbsp%3B%20My%20email%20id%20id%20%3CA%20href%3D%22mailto%3AXXX%40Abc.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EXXX%40Abc.com%3C%2FA%3E.%20I%20want%20to%20trigger%20an%20email%20from%20my%20SharePoint%20with%20some%20dummy%20email%20id%20like%20%3CA%20href%3D%22mailto%3Ayyy%40abc%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Eyyy%40abc.com.%26nbsp%3B%20I%20followed%20your%20steps%20uisng%20initialize%20variable.%3C%2FA%3E%3C%2FP%3E%3CP%3EBut%20I%20got%20an%20error%20message%20%22Not%20authorized%20to%20send%20on%20behalf%20of%20others.%20Could%20you%20please%20explain%20bit%20detail%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1171115%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20-%20Email%20To%20Address%20Display%20Name%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1171115%22%20slang%3D%22en-US%22%3EYou're%20not%20using%20the%20SMTP%20connector.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2365650%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20-%20Email%20To%20Address%20Display%20Name%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2365650%22%20slang%3D%22en-US%22%3EUsed%20the%20SMTP%20connector.%20Needed%20to%20use%20an%20Gmail%20account.%20Changing%20the%20Sent%20to%20does%20not%20work.%20It%20still%20shows%20the%20Gmail%20account%20as%20the%20sender.%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2366688%22%20slang%3D%22en-US%22%3ERe%3A%20Flow%20-%20Email%20To%20Address%20Display%20Name%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2366688%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F227084%22%20target%3D%22_blank%22%3E%40PJ%20Galvin%3C%2FA%3E%26nbsp%3BIf%20you're%20using%20Gmail%20you%20need%20to%20follow%20specific%20steps%20to%20allow%20relaying%20(sending%20email%20as%20a%20non-Gmail%20user).%20You%20can%20find%20the%20steps%20%3CA%20href%3D%22https%3A%2F%2Fsupport.google.com%2Fa%2Fanswer%2F2956491%3Fhl%3Den%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%20Your%20issue%20is%20not%20a%20Power%20Automate%20issue%2C%20the%20SMTP%20connector%20is%20working%20as%20designed%2C%20the%20issue%20is%20due%20to%20improper%20relay%20configuration%20on%20the%20Gmail%20side.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20used%20my%20own%20email%20server%2C%20you%20can%20do%20the%20same%20or%20use%20another%203rd%20party%20one%20like%20send%20grid%20or%20smtp2go%2C%20etc.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Steps to reproduce the Issue:

  • Create an email pbidistro@domain.com
  • Set the name on the email as "PBI Distro"
  • From Flow send email using SMTP or Gmail action.
  • Receive email with Display Name as pbidistro

In SMTP action, we have also tried the following in From field: 

  • "PBI Distro <PBIDistro@domain.com>"
  • "PBI Distro (PBIDistro@domain.com)"

 

So, is there a way to edit "Display Name" while sending an email through flow?

We want to make sure the email's "Display Name" looks pretty when user receives the email.

8 Replies
Came across this post looking for the answer, so I'll post what worked for me.

Use the SMTP Connector.

In your flow, initialize a variable, name it whatever you want, set the initial value to Test<test@test.com> don't use quotes, obviously change this to be whatever you want to use as your From email address. Then in the send email action, choose the variable as your From email address and it works like a charm.
We'll test again.
When did you first saw this work?

Thanks
I created the flow today, it's working fine.

Flow runs successfully.

@NLT-FlowNinja  My email id id XXX@Abc.com. I want to trigger an email from my SharePoint with some dummy email id like yyy@abc.com.  I followed your steps uisng initialize variable.

But I got an error message "Not authorized to send on behalf of others. Could you please explain bit detail? 

You're not using the SMTP connector.
Used the SMTP connector. Needed to use an Gmail account. Changing the Sent to does not work. It still shows the Gmail account as the sender.

@PJ Galvin If you're using Gmail you need to follow specific steps to allow relaying (sending email as a non-Gmail user). You can find the steps here. Your issue is not a Power Automate issue, the SMTP connector is working as designed, the issue is due to improper relay configuration on the Gmail side. 

 

I used my own email server, you can do the same or use another 3rd party one like send grid or smtp2go, etc.