It seems this subject as been beaten to death, but I can't seem to find the solution I'm looking for.
I'm trying to put multiple emails in either the ToName or the CCName. I'm using the MapiHandler. Is there any way to do this without generating a separate email for each address in the list? I'm using NAV 4.0 SP3 with outlook to send the mails. Any help would be greatly appreciated.
Thanks in advance!
0
Comments
Lanham's E-Ship granule does this pretty well.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
http://mibuso.com/blogs/davidmachanick/
I read a post along similar lines, but couldn't get it to work. I tried
mapi.ToName := 'liono@thundercats.com;panthro@thundercats.com';
to test this, and no go.
Also tried something like,
---
mapi.ToName := 'liono@thundercats.com';
mapi.Send;
mapi.ToName := 'panthro@thundercats.com';
mapi.Send;
---
This just sends 2 emails out with the respective addresses.
DavMac1:
Good idea, I'll look into this for our office use, however, the client is sending all of these reports out to their clients, they need the list of emails to be dynamic and easily editable by the user (their IT guy is not very friendly, or personable and they try to avoid him as much as possible)
I'm using the mapihandler automation. Which, when I looked into the Mail codeunit, was also being used. The object has only 2 methods and 8 properties. This doesn't seem like much room to fool around with. Am I using the right object for the job? It seems there has got to be a better, or a least more customizable way, to be doing this.
On a side note, the client is OK with having the object email the report once per email in the list, but now I personally want to know if it can be done
http://mibuso.com/blogs/davidmachanick/
I'm in the same boat - using Exchange groups won't work because the data is being maintained in Navision as you would expect.
The solution for me was simply to comment out the line...
MAPIMessages.ResolveName;
Tested fine here