Sending a triggered email to a different member

Hi. I’m trying to send a triggered email to a member who is not the logged-in-member.
I have the user-Id of the user I want to email, and I want to email him even when it’s another user who’s logged in (logged in for the current session) or even when it’s a visitor who’s visiting the page.
Is there anyway to do so?

Sam wrote an article on this. I believe it is what you need: