title: C# Windows Service that connects to network through VPN
body: <p>I have a Windows Service that must connect, via VPN, to the network in order to send emails. What I need to do (when I start the service) is check whether the VPN connection exists, if not create it, and then connect to the network.</p>
  
  <p>I was looking at <a href="http://dotras.codeplex.com/" rel="nofollow noreferrer">DotRAS</a> which looks ideal for doing all the work, however, it doesn't seem to provide a method for creating a new VPN connection.</p>
  
  <p>So my question is, is there a way in which I can programmatically create a VPN connection?</p>