Options

CU 397 Mail and Logon error on TS with Outlook Express

kinekine Member Posts: 12,562
NAV 4.0SP3

Our customer is using the standard CU 397 for sending mails. No problems on PC, but some users are connecting through Terminal Server and the mail sending is not working. Process ends on the
IF (NOT OApplication.Logon(TRUE,'','',FALSE,FALSE)) THEN BEGIN
  OApplication.Logoff;
  EXIT
END;

because the Logon failed. On TS there is no MS Outlook, just configured Outlook Express (working correctly, sending mails without problems...). Have you some tips for me? Right now I am in situation, when I am not sure, if the standard CU 397 is working with Outlook Express or the MS Outlook is needed.

Thanks for any tip... 8)
Kamil Sacek
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.

Comments

  • Options
    WaldoWaldo Member Posts: 3,412
    This is a long shot:
    install Microsoft CDO (download here).

    :-k

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • Options
    WaldoWaldo Member Posts: 3,412
    It fails when logging on ... hm :-k .

    I guess it's using the logon-functionality of the default mail profile on the PC. Is there a profile installed?
    (Control Panel / Mail)

    Sorry, man, just guessing here ... #-o

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • Options
    krikikriki Member, Moderator Posts: 9,090
    If I remember correctly, until 3.7 MAPI was used, so it means it used the standard email program (Outlook Express or MS Outlook).
    After that it uses MS Outlook and not MAPI anymore.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • Options
    WaldoWaldo Member Posts: 3,412
    All that I know is that the mail codeunit is completely redesigned in 4.00 . The way of sending mails: it uses the "outlook synch handler", which SEEMS a wrapper dll for the dll you get when installing outlook.

    That's why I would try to install the CDO...

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • Options
    kinekine Member Posts: 12,562
    This is what I assumed... it seems like VPC will be correct way how to do some research. Thanks for the hints. 8)
    I guess it's using the logon-functionality of the default mail profile on the PC. Is there a profile installed?
    (Control Panel / Mail)

    This control panel is available after MS Outlook installation, not just with Outlook Express... :-s
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    kinekine Member Posts: 12,562
    First step will be to install CDO, after that, we will see if it helps.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    WaldoWaldo Member Posts: 3,412
    OK, let us know if it helps 8)

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • Options
    kinekine Member Posts: 12,562
    New info:

    Installing CDO - no positive effect (just CDO without MS Outlook)

    Using error text and erro no. after login:

    Error No: 2427
    Error Text: An Error has occured while logging on the MAPI session

    Outlook express is set as default, there is default profile for the OE.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    MagnoMagno Member Posts: 168
    Have you ever found a solution for this error?
    I have the same problem with a user on TS while other users can connect without problems
    There are no bugs, only random undocumented features...
    ---
    My Blog: http://NAV-Magno.be
  • Options
    kinekine Member Posts: 12,562
    It is long time, I do not remember. But in most cases the solution was to use newest OLHandler.dll
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    danlindstromdanlindstrom Member Posts: 130
    If you insist to use Outlook Express and not Outlook on the TS you should read the knowledgebase article KB896888
    https://mbs.microsoft.com/knowledgebase/KBDisplay.aspx?WTNTZSMNWUKNTMMYKKQRRUZVRPSSXNSNLRZQMYKMOUUTZXMKZRTYPMMTKOPMTTPL
    change the code in the Mail codeunit (397) and in the To-do Handler codeunit (5073) according to KB896888
    Regards
    Dan Lindström
    NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer)
    MBSP Developer for Microsoft Dynamics NAV 2009
Sign In or Register to comment.