Options

Mail Codeunit (397) in Role Tailored Client

NavJenNavJen Member Posts: 14
edited 2009-09-24 in NAV Three Tier
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!

Answers

  • Options
    ara3nara3n Member Posts: 9,256
    It works fine for me. I tried this on RTC with 2009 Sp1
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    NavJenNavJen Member Posts: 14
    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.
  • Options
    ara3nara3n Member Posts: 9,256
    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');
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    NavJenNavJen Member Posts: 14
    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!
  • Options
    ara3nara3n Member Posts: 9,256
    I'm glad you got it resolved.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.