Freigeben über


Want a treat? Get others to send you an invite :P

Here's an example of my "idle mind at work"... writing code just for the heck of it...

SendKeys.SendWait("^({ESC})");

Thread.Sleep(500);

SendKeys.SendWait("run");

Thread.Sleep(1000);

SendKeys.SendWait("{ENTER}");

Thread.Sleep(500);

String currentRecepients = "<your To List>";//Enter all emails separated by semi colons

SendKeys.SendWait("mailto:" + currentRecepients + ";";//+ WindowsIdentity.GetCurrent().Name.Split('\\')[1]);

Thread.Sleep(500);

SendKeys.SendWait("{ENTER}");

Thread.Sleep(500);

SendKeys.SendWait("treat from me at barista... today 4:30pm");

SendKeys.SendWait("{TAB}");

SendKeys.SendWait("no particular reason... just for the heck of it");

SendKeys.SendWait("%(s)");

What it does is pretty simple actually. It opens outlook and sends a mail from the guy running this code to the intended recepients.

Now how can you get your target user to run this code? Well, thats upto you to figure out.

Complements of the season,

Alvaro Dias