Outlook Email is sended
breko
Member Posts: 4
Hello
I want to know if my e-mail is sended. Outlook is display but I have to kown if the User press the button send or close the Outlookclient without sending (broke the process).
Code in C# This code work in C# but I don't know how to implement in navision.
((Outlook.ItemEvents_10_Event)mailItem).Send += new Microsoft.Office.Interop.Outlook.ItemEvents_10_SendEventHandler(ThisAddIn_Send);
((Outlook.ItemEvents_10_Event)mailItem).Close += new Microsoft.Office.Interop.Outlook.ItemEvents_10_CloseEventHandler(ThisAddIn_Close);
Code in NAV 2013 R2 with DotNet
OutlookApplication := OutlookApplicationClass.ApplicationClass();
OutlookMailItem := OutlookApplication.CreateItem(OlItemType.olMailItem);
OutlookMailItem."To" := ToAddresses;
OutlookMailItem.CC := CcAddresses;
OutlookMailItem.Subject := Subject;
OutlookMailItem.Body := Body;
OutlookMailItem.Display(TRUE);
//Check Item Events whats happen
ItemEvents.add_Send(ItemEvents_10_SendEventHandler);
ItemEvents_10_SendEventHandler.Send(Send_Boolean);
OutlookMailItem.add_Send(ItemEvents_10_SendEventHandler);
Have somebody experience in this case. Can somebody help me?
Thanks
I want to know if my e-mail is sended. Outlook is display but I have to kown if the User press the button send or close the Outlookclient without sending (broke the process).
Code in C# This code work in C# but I don't know how to implement in navision.
((Outlook.ItemEvents_10_Event)mailItem).Send += new Microsoft.Office.Interop.Outlook.ItemEvents_10_SendEventHandler(ThisAddIn_Send);
((Outlook.ItemEvents_10_Event)mailItem).Close += new Microsoft.Office.Interop.Outlook.ItemEvents_10_CloseEventHandler(ThisAddIn_Close);
Code in NAV 2013 R2 with DotNet
OutlookApplication := OutlookApplicationClass.ApplicationClass();
OutlookMailItem := OutlookApplication.CreateItem(OlItemType.olMailItem);
OutlookMailItem."To" := ToAddresses;
OutlookMailItem.CC := CcAddresses;
OutlookMailItem.Subject := Subject;
OutlookMailItem.Body := Body;
OutlookMailItem.Display(TRUE);
//Check Item Events whats happen
ItemEvents.add_Send(ItemEvents_10_SendEventHandler);
ItemEvents_10_SendEventHandler.Send(Send_Boolean);
OutlookMailItem.add_Send(ItemEvents_10_SendEventHandler);
Have somebody experience in this case. Can somebody help me?
Thanks
0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions