Added Mail To, CC and BCC for MAPI

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2485 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2013-02-13 21:23:38 +00:00
parent d77d4d9ddf
commit c188ad10e8
2 changed files with 11 additions and 1 deletions

View file

@ -55,7 +55,10 @@ namespace Greenshot.Helpers {
public static void SendImage(string fullPath, string title) { public static void SendImage(string fullPath, string title) {
MapiMailMessage message = new MapiMailMessage(title, null); MapiMailMessage message = new MapiMailMessage(title, null);
message.Files.Add(fullPath); 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();
} }

View file

@ -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")] [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; 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 // Specifies what THIS build is
public BuildStates BuildState = BuildStates.UNSTABLE; public BuildStates BuildState = BuildStates.UNSTABLE;