Results 1 to 3 of 3

Thread: E-mail client doesn't start from VPE Preview

  1. #1
    Join Date
    Feb 2009
    Posts
    1,039

    Default E-mail client doesn't start from VPE Preview

    I have used Virtual Print Engine with DF classes from Starzen for many years, and the E-mail function has always worked well provided that the mail client is 32 bit. However, two weeks ago, the E-mail suddenly stopped working. I asked the following question on the VPE Forum, but got no answer, not even from Thorsten Radde who use to answer every question.

    One of my customers has a local network with 4 computers running Outlook 365 as E-mail client and they are sending a lot of E-mails from VPE previews clicking on the E-mail icon. Until last Friday it worked perfectly, but now nothing happens when they click on the E-mail icon on one of the computers. It works from the other three and the program using VPE wasn’t changed.
    We installed Thunderbird on that computer for test, and Thunderbird started once when clicking at the icon, but now it doesn’t start.

    Any idea about how to come further with this problem?

    After that, the problem spread to all of their computers so now the E-mail function from the Preview doesn't work at all.

    Bengt

  2. #2
    Join Date
    Feb 2009
    Location
    Stuart, FL
    Posts
    5,321

    Default Re: E-mail client doesn't start from VPE Preview

    Bengt

    this is a piece from Ideals doc on MAPI issues

    obviously it has to be a 32 bit MAPI compliant mail client

    Code:
     
    There are some problems with MAPI. Some vendors of MAPI clients (e-mail software) do not set up the registry correctly. The problems are sometimes very heavy and difficult to solve. In the following we list the problems we heared about:
     
    32-bit VPE on Win-32 (9x / ME, NT >= 4.0 / 2000 / XP) platform
    MAPI clients are not correctly registered. The guideline is, that the following entry must be present in the registry for all 32-bit platforms listed above:
     
    HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows Messaging Subsystem \ MAPI = 1
     
    But for NT <= v4.00 there has to be the following entry in the WIN.INI in the section [Mail]:
    [Mail]
    MAPI = 1
     
    VPE checks for all conditions above, but some MAPI clients do not setup the registry as they should.
     
    To cure the problem listed above, we implemented the following solution:
    VPE checks for the guideline rules first and returns VMAPI_INSTALLED if they are matched. Otherwise VPE will check for a WIN.INI entry (yes!) which is made by some clients in the [Mail] section:
    [Mail]
    MAPIX = 1
     
    If this entry is found, VPE will return VMAPI_UNSURE, because it is not 100% sure that a 32-bit MAPI client is really installed. Otherwise VPE will return VMAPI_NOT_INSTALLED. If you are sure there is a working MAPI client on the machine, but the registry key is missing, you can add it manually or let this perform by your setup software.
     
    The e-mail toolbar button and the method MailDoc()
    The e-mail button will be enabled for the condition VMAPI_INSTALLED and will be disabled (grayed) for the conditions VMAPI_UNSURE and VMAPI_NOT_INSTALLED.
     
    You have the chance to re-enable the e-mail button after calling OpenDoc() , if you are sure a working MAPI client is installed (see VpeEnableMailButton).
     
    The method MailDoc() will work for all conditons (i.e. it is not blocked), but for VMAPI_NOT_INSTALLED and VMAPI_UNSURE you call it on your own risc.
    Michael Salzlechner
    StarZen Technologies, Inc
    http.://www.starzen.com

    IT Director at Balloons Everywhere

    Development Blog
    http://www.salzlechner.com/dev

    DataFlex Package Manager (aka Nuget for DataFlex)
    http://windowsdeveloper.com/dfPackage

  3. #3
    Join Date
    Feb 2009
    Location
    Fresno, CA
    Posts
    1,072

    Default Re: E-mail client doesn't start from VPE Preview

    FWIW, this is our (current) checklist for MAPI problems:


    The 64-bit version of Outlook does not work with our program.

    0. Make sure that there is a default mail client installed. (Control Panel->Internet Options->Programs)

    1. Make sure that all three VPE DLL's are present in the Programs folder: vpep3271.dll, vpejnip3271.dll, and vpejniguip3271.dll. Check that the Start In folder is correct on the shortcut used to start the program.

    2. Check the following in the registry:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Messaging Subsystem

    Make sure that the following string values are present:

    MAPI 1
    MAPIX 1
    CMC 1
    CMCDLLNAME Mapi.dll
    CMCDLLNAME32 Mapi32.dll
    MAPIX 1
    MAPIXVER 1.0.0.1
    OLEMessaging 1

    Two files containing the registry entries are attached to this article. These files can be imported into the registry instead of adding them manually.

    3. Check to make sure that the MAPI32.DLL is present in the C:\Windows\System32 folder.

    4. In Windows Explorer, can you right click on a file, go to Send To, and is the Mail Recipient option present and enabled? Does it work?

    5. Try installing Thunderbird and make it the default email client. Make sure you restart the Datatech Accounting Software so that it will register the new email client program. Go to Tools->Program Setup->Main->Fax & Email Settings and make sure that the "Resolve Email Address to Address Book (MAPI)" box is not checked. This option doesn't work with Thunderbird.

    Note: Under 64 bit versions of Windows, when you change the Windows default email client, it may make a change to the following registry key:

    HKEY_LOCAL_MACHINE\Software\Clients\Mail:default registry value

    But it may not change this key:

    HKEY_LOCAL_MACHINE\Software\WOW6432Node\Clients\Ma il:default registry value

    Check the registry to make sure the 32-bit default client has been changed. (Reported under Windows 10)

    Check to make sure the MAPI DLL for Thunderbird can be registered with REGSVR32:

    C:\Program Files (x86)\Mozilla Thunderbird>regsvr32 /i "C:\Program Files (x86)\Mozilla Thunderbird\MapiProxy_inuse.dll"

    6/29/17 - On Graham, we got the following message:

    [Window Title]
    RegSvr32

    [Content]
    The module "C:\Program Files (x86)\Mozilla Thunderbird\MapiProxy_inuse.dll" was loaded but the entry-point DllInstall was not found.

    Make sure that "C:\Program Files (x86)\Mozilla Thunderbird\MapiProxy_inuse.dll" is a valid DLL or OCX file and then try again.

    [OK]

    There are multiple reports of Send to Mail Recipient not working on version 52 of Thunderbird, Try version 45.8:

    http://ftp.mozilla.org/pub/thunderbird/releases/45.8.0/

    Sometimes we exhaust this list and resort to using SMTP email functions built into our program and tell the customer the preview emailing functionality can't be enabled.
    Best regards,

    Matt Davidian
    Datatech
    Fresno, CA
    www.datatechag.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •