public static void DeleteCustomDomain(string name) { if (!string.IsNullOrEmpty(name)) { XMLayer xmLayer = new XMLayer(); try { xmLayer = XMServer.CreateXMLayer(); xmLayer.Login(); xmLayer.DelCustomDomain(name); xmLayer.Logout(); } catch (XMailException ex) { Log.WriteException(ex); throw; } } }