When you want to debug a windows service using the Visual Studio IDE you can either attach to the process which isn't fun after 5 minutes or you can do the following.
Create a Visual Studio Solution
Let's start by creating a new Visual Studio Solution named "EmailProcessor Solution".
File | New...
[More]