Take Photo

I need make function - take photo in my project. How to change default location photo save?

I used use click button - execute command -HighResShot 2 .
Goal - if button click - photo send via e-mail.

This is not possible by default. You would need to code this in C++ on the engine yourself.