web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / When a new Email Arriv...
Power Automate
Unanswered

When a new Email Arrives is getting Error

(0) ShareShare
ReportReport
Posted on by 72

I have a flow that works but I need to add to it that if a new email arrives in an inbox with "Undeliverable: SUBJECT" (of email before) that it then sends another email.  The original part of the flow sends an email that is texted to the users mobile phone number.  The issue is that there are two carriers so if one carrier returns that it is undeliverable try the next one.  Is there a way to try a new cell number if the other one is undelieverable?

 

We use both AT&T (number@mms.att.net) and Verizon (number@vzwpix.com)

It is not always clear which carrier people use and I want to send to AT&T and then if I get a reply that it is undeliverable then send it to Verizon.

Testing1231_0-1680818819917.png

 

Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @Testing1231 

     

    Does the carriers meant emails of recipients ?

     

  • Testing1231 Profile Picture
    72 on at
    Yes- we use both AT&T (number@mms.att.net) and Verizon (number@vzwpix.com) It is not always clear which carrier people use and I want to send to AT&T and then if I get a reply that it is undeliverable then send it to Verizon.
  • Testing1231 Profile Picture
    72 on at

    So I got the flow to work but the issue is that it ultimately tries the first email @mms.att.net and then tries the other one. This results in a lot of undeliverable messages in the email inbox.  Is there any fix to this? @Nived_Nambiar Capture.JPGCapture2.JPG

  • Testing1231 Profile Picture
    72 on at

    Okay so really not a solution- so if anyone has any suggestions- I would greatly appreciate it.  Right now, the flow checks if the numbers are AT&T and sends email using the @mms.att.net gateway if they are.  If they cannot be found with that email then it tries the Verizon gateway.

    What I end up with is two texts (one with AT&T users and one with AT&T and Verizon users. Is there a way to have the flow only run if all users have an email that works (so there would be just one text sent)?  I am using apply to each.

    There is still an email sent showing that the Verizon number is not deliverable.

    Capture.JPG

  • Testing1231 Profile Picture
    72 on at

    It is like I need a apply to each until all emails are found.

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @Testing1231 

     

    I have one idea, But need your help in confirming that. 

     

    Let's say you sent an email and that is undeliverable. Could you use outputs() function after that send email to see json response like below

     

    Nived_Nambiar_0-1680891047468.png

     

     

    Hope we will get some hint 🙂

     

  • Testing1231 Profile Picture
    72 on at

    So I think that worked to get only one text sent! But still have the issue of numbers that are Verizon are sent and then returned undeliverable- The amount of undeliverable emails would be a lot and would like to avoid this, if possible-

    Step 1Step 1Step 2Step 2Step 3Step 3Step 4Step 4

     

  • Testing1231 Profile Picture
    72 on at

    Everything works (meaning it sends just one text with verizon and AT&T numbers combined into one text) but is there anyway to get rid of the undeliverable Verizon numbers (the flow first tries these numbers in the gateway @mms.att.net and then tries verizon.  I can always filter the undeliverable messages to a folder but was hoping for a work around so I don't get these at all.  Thanks!

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    @Testing1231 

     

    There is some api s which can validate emails , but i think some of them are paid.

     

    What i think is the output() will return the output of action, so let's see what would be status code present inside output if message is undelivered ?

     

     

  • Testing1231 Profile Picture
    72 on at

    Well for the life of me, I cannot figure out why this flow works.  It does end up sending one text and includes the verizon and att numbers.  The status code is 200 for all of the people.  And then even when I look at my sent mail, it only show all three numbers with AT&T gateway yet all three people are a part of a group text with the appropriate verizon or AT&T being used.

    Capture.JPG

     

     Capture.JPG

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard