Hi,
I tried to use the Codeunit 397 Mail to send email out. The sample code in a new codeunit is as follows:
CustomerAging is a report variabe, report 105
Mail is a codeunit variable, codeunit 397
CLEAR(CustomerAging);
CustomerAging.SAVEASHTML('d:\testing1.html');
CLEAR(mail);
IF mail.NewMessage(
'abc@123.com','',
'testing report from navision',
'This is the testing message',
'd:\testing1.html',
FALSE) THEN;
IF NOT mail.Send THEN
BEGIN
MESSAGE('%1',FORMAT(mail.GetErrorCode));
MESSAGE('%1',mail.GetErrorDesc);
END;
The mail can be successfully sent.
However, I got the error message shown on the screen as follows
"Boolean must not be blank.
Boolean is missing or invalid in the expression."
Any Clue?
Thanks,
Rich
Comments
http://www.mibuso.com/forum/viewtopic.php?t=8447&highlight=boolean+blank
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n