public static void SendUserConfig(this string nkdPath, string[] emailRecipients) { if (emailRecipients == null || emailRecipients.Length < 1) return; MAPI mapi = new MAPI(); var f = nkdPath.CreatePackageFromUserConfigFile(); if (f == null) return; mapi.AddAttachment(f); foreach (var r in emailRecipients) mapi.AddRecipientTo(r); mapi.SendMailPopup("Updated NKD Configuration File", "Please install the attached configuration file for NKD."); }
public static void SendUserConfig(this string nkdPath, string[] emailRecipients) { if (emailRecipients == null || emailRecipients.Length < 1) { return; } MAPI mapi = new MAPI(); var f = nkdPath.CreatePackageFromUserConfigFile(); if (f == null) { return; } mapi.AddAttachment(f); foreach (var r in emailRecipients) { mapi.AddRecipientTo(r); } mapi.SendMailPopup("Updated NKD Configuration File", "Please install the attached configuration file for NKD."); }