hi everyone,
Am having issues when sending mail. i pasted the below codes on page close
MESSAGE("Email Address");
SMTP.CreateMessage('Interview Appointment',"Email Address",'seymalick@gmail.com','Interview Scheduled','',TRUE);
SMTP.AppendBody('Hello '+"Candidate No" +'' +Name);
SMTP.AppendBody('<br><br> ');
SMTP.AppendBody('you are being invited for an interview on this date '+FORMAT(Date));
SMTP.AppendBody('<br><br> ');
SMTP.AppendBody('and at this time' +FORMAT(Time));
SMTP.AppendBody('<br><br>');
SMTP.AppendBody('This is a Test From Microsoft Dynamics NAV. Please do not Reply');
SMTP.Send;
MESSAGE('Email Successfully Sent!');
It only send email after when the page is closed. And i want it work after opening a new record
*This post is locked for comments