hi experts,
I want to send a mail if duedate is greater 5 days of today
duedate := 25/4/2018
DuedateCalculation := calcdate(>=+5D, duedate)
TodayDate := TODAY;
IF DuedateCalculation = >Today then
SMTP.AppendBody(Text009);
SMTP.AppendBody(Text010);
SMTP.AppendBody(Text011+' '+COPYSTR(customer."No.",1,50)+','+' '+COPYSTR(customer.Name,1,50)+ ' '+Text012+FORMAT(dueamounts)+Text0017);
SMTP.AppendBody(Text010);
SMTP.AppendBody(Text013);
SMTP.AppendBody(Text014);
SMTP.AppendBody(Text015);
SMTP.AddAttachment(path,PdfDocPath);
SMTP.AddAttachment(path2,pdf2);
SMTP.Send;
Its not working please tell me i want to send a email expired due date (after 5 date of due date i need to send a mail ) i dont know how to calculate the date. please give any solution.
Thank you
*This post is locked for comments