mirror of
https://github.com/greenshot/greenshot
synced 2025-07-15 01:23:47 -07:00
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:
parent
d77d4d9ddf
commit
c188ad10e8
2 changed files with 11 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue