public override void execCommand(eCommandType cmdType, Function function)
 {
     if (checkCommandType(cmdType))
     {
         LogHelper.Log(LogLevel.Info, String.Format(">>> Execute SendMail command on event {0} ", cmdType));
         LogHelper.Log(LogLevel.Trace, String.Format("      SendMailCommand={0} / Function={1}", _sendMailCommand.ToString(), function.ToString()));
         // Send mail ...
         bool bOk = MailHelper.SendMail(_sendMailCommand.ToAddress,
                                        replacePlaceHolders(_sendMailCommand.Subject, cmdType, function),
                                        replacePlaceHolders(_sendMailCommand.Body, cmdType, function));
         if (!bOk)
         {
             LogHelper.Log(LogLevel.Error, String.Format("      Execute SendMail FAILED!"));
         }
     }
 }