Awesome. Thanks for that info! It's actually super-helpful. :)
The macro you've pasted is certainly creating the message, but it is not invoking a send command. You can fix this one of two ways:
1) Add this to the bottom of your With OutMail block:
.Send()
2) Alternatively, add this after the End With:
OutMail.Send()
In regards to the SendKeys error, it sounds like by having the virtual machine closed, you just mean it's not in the foreground. If that's the case, this absolutely explains why it isn't working. Global Send Keys functions as a top-down (layer-wise) interaction tool. Best practice is to always ensure it's in the foreground by activating it within Blue Prism first. Likewise, if I recall correctly, SendKeys acts the same way as it's just what Blue Prism's Global Send Keys calls in the background.
It's interesting that it would specifically give an access denied error, though. That sounds more like one of the processes is running under a different user account with different permissions, or something.