Skip to content

Commit

Permalink
Update Mail4Delphi.pas
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusvicente100 committed Jan 19, 2024
1 parent dafc9e8 commit 8876dd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mail4Delphi.pas
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ function TMail.SendMail: Boolean;
LImplicitConnection := Self.Connect;
try
try
FIdMessage.MsgId := FMessageId;
if not FMessageId.Trim.IsEmpty then
FIdMessage.MsgId := FMessageId;
FIdSMTP.Send(FIdMessage);
Result := True;
except
Expand Down

0 comments on commit 8876dd6

Please sign in to comment.