How do i take a screenshot while recording and send the screenshot via email?

I tried making a recording of logging into a website and taking a screenshot and sending the screenshot to myself via email, how am i able to achieve this?

@CalvinW You can use the take screenshot activity and store it in an image variable in uipath OR You can use send hotkey activity to send (win + prtscreen) which will take a screenshot. Now you can access the screenshot which will be stored in the Pictures folder in windows.