Skip to content

Commit

Permalink
fixed issue with wrong null checking of CC and BCC strings in Mail class
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenVandezande committed May 21, 2013
1 parent 929f43f commit 2cfe252
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions RemObjects.Train/API/Mail.pas
Expand Up @@ -62,10 +62,8 @@ implementation
lSMTP.Credentials := new System.Net.NetworkCredential(lUN, lPW);
if aServices.Engine.DryRun then exit;
if aOpt <> nil then begin
if String.IsNullOrEmpty(aOpt.cc) then
lMailMsg.CC.Add(aOpt.cc);
if String.IsNullOrEmpty(aOpt.bcc) then
lMailMsg.Bcc.Add(aOpt.bcc);
if not String.IsNullOrEmpty(aOpt.cc) then lMailMsg.CC.Add(aOpt.cc);
if not String.IsNullOrEmpty(aOpt.bcc) then lMailMsg.Bcc.Add(aOpt.bcc);
for each el in aOpt.attachments do begin
if (el.data = nil) and (el.filename = nil) then continue;
if el.data <> nil then begin
Expand Down

0 comments on commit 2cfe252

Please sign in to comment.