Today I was asked to do something a bit more “hard core” than I’m used to.
I was asked to work with emailing in Navision.
So, for now, I need to know how to add multiple recipients to an email message.
I know the codeunit mail already has the OpenNewMessage function, but, from what I could tell, it only adds one email contact at a time. Is there another function, or a way to edit that function, so that I can add emails directly from a table?
There are two mail codeunits, Mail and SMTP Mail. You should be able to look at the code and see how the functions handle the email addresses. I forget whether you can separate them by commas or semi-colons, but you should be able to send to more than one email address.
I managed to do what I wanted. Had to change the Attachment Management codeunit a little bit.
But now I have to face another challenge…
Right now, I am able to choose a list of contact, write the email body content in a notepad and send that content automatically without even seeing anything (what I mean is, I don’t have to use Outlook to send the emails). But, is it possible to receive a delivery report and a read receipt for the emails I’m sending via Navision? Can I receive those in Outlook?
I’m not sure about the delivery report, never done it, but if you are using Outlook automations you can definitely set the Read Receipt property. Have a look around MSDN in the Outlook sections.
Lists all of the members of the MailItem interface for Outlook. I see one for ReadReceiptRequested, but there’s not one that immediately pops out for Delivery