Runtiom error when use codeunit 397 to send mail

chao_jichao_ji Member Posts: 2
I use codeunit 397 to send mail like below

Mail.NewMessage('hotmail.com','','Subject','Body','',FALSE);

The system show error "Rintime Error" and Navision is blockecd

But if I set OSendMail.OpenDialog := Ture

Mail.NewMessage('hotmail.com','','Subject','Body','',True);

The system is runing normal and I must to send the mail manual
Sign In or Register to comment.