Fixed bug for feature request #3542622, wrong logic.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1958 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-07-19 16:06:55 +00:00
commit c491f15423

View file

@ -291,13 +291,13 @@ namespace Greenshot.Interop.Office {
//MailItem newMail = COMWrapper.Cast<MailItem>(newItem);
MailItem newMail = (MailItem)newItem;
newMail.Subject = subject;
if (string.IsNullOrEmpty(to)) {
if (!string.IsNullOrEmpty(to)) {
newMail.To = to;
}
if (string.IsNullOrEmpty(CC)) {
if (!string.IsNullOrEmpty(CC)) {
newMail.CC = CC;
}
if (string.IsNullOrEmpty(BCC)) {
if (!string.IsNullOrEmpty(BCC)) {
newMail.BCC = BCC;
}
newMail.BodyFormat = OlBodyFormat.olFormatHTML;