Email to multiple recipients?

teeter
Member Posts: 46
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!
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
-
teeter wrote: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!
Lanham's E-Ship granule does this pretty well.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
You can also use Jmail or smtp ocx, or use the navision.smtp dll file.0
-
I would love to do that, but there isn't a chance the client's IT guy is going to allow that to happen. If there is a solution for me, its going to have to go through outlook #-o0
-
If I remember correctly, you can call add recipient multiple times, or separate them by semicolon.0
-
If it is to the same group of people on a Microsoft Exchange Server, you could have them set up a group and email to the group which will then send the email to the individuals in the group.David Machanick
http://mibuso.com/blogs/davidmachanick/0 -
ara3n:
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 done0 -
You could have the Outlook email form pop up and the user can then edit and add names in Outlook.David Machanick
http://mibuso.com/blogs/davidmachanick/0 -
teeter - interesting post and I notice no-one has given the answer you want.
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 here0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions