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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Can you extract an ema...
Power Automate
Unanswered

Can you extract an email address from an email and use it to send a new email

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I need to extract an email address from the text of an email and automatically send a new email to that extracted email.

 

I have used this, https://powerusers.microsoft.com/t5/General-Power-Automate/Using-a-flow-to-extract-email-body-details/td-p/149186 as a guide to extracting the text. 

 

I can therefore manually take the email from the text and send the relevant email, but cannot do it automatically.

 

Is this possible?

 

Thanks,

Ben

Categories:
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Ben_CODR 

     

    You can try something like this if the email is something like what is shown in the initialize variable action: 

    pep1.png

    ee322.png

     

    To extract all the email address from the email, content you need to setup the configuration as:

    1) An string variable to add all the emails separated by ';'.
    2) A string variable to save the "new line" character to separate out the lines. While defining this variable, the value should just contain an Enter.
    3) In the Apply to Each, you need to add a condition which checks for the @ symbol. The expression used on the right side of the condition is: string('@')

    You can use the 'extracted emails' variable to get the email address.

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 263

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard