On Modify Trigger

karuchuakaruchua Member Posts: 151
hi,

i want to send an email upon record change and the following code is not firing.
LUserREC.GET(USERID);
LRcpMail:= 'test@lifter.com';
IF LHRMSetupREC."Enable Emp. Dtls. Notification" THEN BEGIN
  IF LSMTPMailSetupREC.GET THEN BEGIN

      LSMTPMailCDU.CreateMessage('Staff details','Notifications@lifter.com', LRcpMail,
                                 'Update of Staff Details > '+"No."+'-'+LEmployeeREC.FullName,LEmployeeREC.FullName,FALSE);
      LSMTPMailCDU.AppendBody(' has updated his/her staff details  ');
     // LSMTPMailCDU.AppendBody(LCRLF + LCRLF);
      LSMTPMailCDU.Send;
  END;
END;

Comments

Sign In or Register to comment.