Mail Codeunit (397) in Role Tailored Client

NavJen
Member Posts: 14
I have code that calls the Mail codeunit (397), which creates and opens an email in Outlook. This works in NAV 2009 Classic Client, but not in NAV 2009 Role Tailored Client. When the code gets run in the RTC, I get the message "The server has requested to run BSTRConverter Class on your client, Allow this time, but ask again, Always allow, or Never allow". I select 'Always allow' but then nothing happens.
All three tiers are setup on one machine. Any ideas why codeunit 397 is not working in the RTC?
I know that the SMTP Mail codeunit (400) works with the RTC, but it is my understanding that the codeunit automatically sends the message without opening up the email.
Is there some other way to populate and open an email message in Outlook in NAV 2009 Role Tailored Client?
Thanks!
All three tiers are setup on one machine. Any ideas why codeunit 397 is not working in the RTC?
I know that the SMTP Mail codeunit (400) works with the RTC, but it is my understanding that the codeunit automatically sends the message without opening up the email.
Is there some other way to populate and open an email message in Outlook in NAV 2009 Role Tailored Client?
Thanks!
0
Answers
-
It works fine for me. I tried this on RTC with 2009 Sp10
-
Thanks for testing it. I tried it both with NAV 2009 and NAV 2009 SP1 with no success. It can't be a code issue because I can get it to work from the classic client.
I wonder if it could be some sort of security setting.0 -
I'm guessing you have outlook installed.
Also try to delete all your settings. In Sp1 in upper right window is the customize button click on it and select delete personalization settings.
Then try it again.
My code looks like this
Mail.OpenNewMessage('ada_AT_tt.com');0 -
I do have Outlook installed. The problem was I was using a work group login. If I use a normal domain login it works. Thanks!0
-
I'm glad you got it resolved.0
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