Read receipt Outlook Email from Nav 2009 Codeunit 397

John29John29 Member Posts: 3
Hi,
Saw no successful resolutions on how to get read receipts using Nav emails triggered by codeunit 397, but got lucky and worked it out.

I inserted code in codeunit 397 as follows:

OSendMail.OpenDialog := OpenDialog; //standard
OSendMail.ReadReceiptRequested(gReadReceipt); //Custom
MailSent := OSendMail.Send; //standard

gReadReceipt is a global variable, populated by calling another function with the single line of code:

gReadReceipt := pReadReceipt; //pReadReceipt being a passed boolean variable

The effect of the function is to allow control over which emails require the read receipt.

Had lots of great resolutions off this forum; thought it only fair if I (ever) worked one out that I couldn't see there already, that I'd upload it. Apologies to anyone I'm teaching to suck eggs.
Sign In or Register to comment.