// CreateMailContact() // desc: Method calls PowerShellComponent command CreateMailContact and creates a new mail contact under given OU // params: string name - Name of mail contact // string email - Email of mail contact // string ou - Organizational Unit to create mail contact // method: public // return: bool public static bool CreateMailContact(string name, string email, string ou) { bool Results; PowerShellComponent.ManagementCommands objManage = new PowerShellComponent.ManagementCommands(); Results = objManage.CreateMailContact(name, email, ou); objManage = null; return Results; }