diff --git a/Greenshot/Helpers/MailHelper.cs b/Greenshot/Helpers/MailHelper.cs index ab51a0e41..f1da599e8 100644 --- a/Greenshot/Helpers/MailHelper.cs +++ b/Greenshot/Helpers/MailHelper.cs @@ -55,7 +55,10 @@ namespace Greenshot.Helpers { public static void SendImage(string fullPath, string title) { MapiMailMessage message = new MapiMailMessage(title, null); message.Files.Add(fullPath); - message.ShowDialog(); + message._recipientCollection.Add(new Recipient(conf.MailApiTo, RecipientType.To)); + message._recipientCollection.Add(new Recipient(conf.MailApiCC, RecipientType.CC)); + message._recipientCollection.Add(new Recipient(conf.MailApiBCC, RecipientType.BCC)); + message.ShowDialog(); } diff --git a/GreenshotPlugin/Core/CoreConfiguration.cs b/GreenshotPlugin/Core/CoreConfiguration.cs index 0dff6ca9e..03e6153b7 100644 --- a/GreenshotPlugin/Core/CoreConfiguration.cs +++ b/GreenshotPlugin/Core/CoreConfiguration.cs @@ -226,6 +226,13 @@ namespace GreenshotPlugin.Core { [IniProperty("MaxMenuItemLength", Description = "Maximum length of submenu items in the context menu, making this longer might cause context menu issues on dual screen systems.", DefaultValue = "25")] public int MaxMenuItemLength; + [IniProperty("MailApiTo", Description = "The 'to' field for the email destination (settings for Outlook can be found under the Office section)", DefaultValue = "")] + public string MailApiTo; + [IniProperty("MailApiCC", Description = "The 'CC' field for the email destination (settings for Outlook can be found under the Office section)", DefaultValue = "")] + public string MailApiCC; + [IniProperty("MailApiBCC", Description = "The 'BCC' field for the email destination (settings for Outlook can be found under the Office section)", DefaultValue = "")] + public string MailApiBCC; + // Specifies what THIS build is public BuildStates BuildState = BuildStates.UNSTABLE;