how to attach a file to a mail using the function NewMessage from codeunit Mail(397)
Hi Bavani,
Agrument 5 in the NewMessage function is for the full path of the attachment you want to send e.g.
IF Mail.NewMessage(“Email Address”,“Copy Address”, “Subject Line”,“Email Body”,“PDF File”,FALSE) THEN
where “PDF File” is a variable with the path to the attachment.