Skip to main content

[Migrated content. Thread originally posted on 05 September 2005]

Hello,

I lilke to send email with my Acucobol application.

I downloaded msemail.zip from http://www.acucurp.com (sample programs).

I opened the project in Acubench. Generating and compiling of the program are all withour errors, but when I execute the program I get the following error message:
Class Not Registered.

How can I solve this problem.

(ps I tried already to register msmapi32.ocx, it succeeded, but did not solve the problem)

[Migrated content. Thread originally posted on 05 September 2005]

Hello,

I lilke to send email with my Acucobol application.

I downloaded msemail.zip from http://www.acucurp.com (sample programs).

I opened the project in Acubench. Generating and compiling of the program are all withour errors, but when I execute the program I get the following error message:
Class Not Registered.

How can I solve this problem.

(ps I tried already to register msmapi32.ocx, it succeeded, but did not solve the problem)
This example requires Microsoft Outlook to be installed. Given the error message you get, it seems to me that Microsoft Outlook is not installed on the machine you are testing this.

If you don't want to use Microsoft Outlook, you can look for the smtp example, there are two, one that just send an email and one that also allow to send an attachment.

You should find both there on the forum somewhere.

[Migrated content. Thread originally posted on 05 September 2005]

Hello,

I lilke to send email with my Acucobol application.

I downloaded msemail.zip from http://www.acucurp.com (sample programs).

I opened the project in Acubench. Generating and compiling of the program are all withour errors, but when I execute the program I get the following error message:
Class Not Registered.

How can I solve this problem.

(ps I tried already to register msmapi32.ocx, it succeeded, but did not solve the problem)
Is there a possibility to start Outlook Express from Acucobol. I like to start Outlook Express like you can do in windows.

In a folder, right-click a file and choose "send to mail recipient".

Is this possible?

[Migrated content. Thread originally posted on 05 September 2005]

Hello,

I lilke to send email with my Acucobol application.

I downloaded msemail.zip from http://www.acucurp.com (sample programs).

I opened the project in Acubench. Generating and compiling of the program are all withour errors, but when I execute the program I get the following error message:
Class Not Registered.

How can I solve this problem.

(ps I tried already to register msmapi32.ocx, it succeeded, but did not solve the problem)
Yepp, quite straight forward as well.


       IDENTIFICATION               DIVISION.
       PROGRAM-ID.                  TEMPLATE.
       ENVIRONMENT                  DIVISION.
       CONFIGURATION                SECTION.
       SPECIAL-NAMES.
       WORKING-STORAGE SECTION.

       77  CNTL-FONT                USAGE HANDLE OF FONT SMALL-FONT.
       77  KEY-STATUS               IS SPECIAL-NAMES
           CRT STATUS               PIC 9(4) VALUE 0.
           88  EXIT-PRESSED         VALUE 27.

       SCREEN      SECTION.
       01  TEMPLATE-SCREEN.
       03      wb-1             web-browser
               visible = 0 line 1 col 1 size 1 lines 1.
           03      PUSH-BUTTON
                   LINE             13
                   COL              63
                   SIZE             14
                   TITLE            "E&xit"
                   SELF-ACT
                   EXCEPTION-VALUE  = 27.

       PROCEDURE DIVISION.
       MAIN-LOGIC.

           DISPLAY STANDARD         GRAPHICAL WINDOW
                   TITLE            "Template"
                   CONTROL          FONT CNTL-FONT
                   SIZE             80
                   LINES            15
                   BACKGROUND-LOW.

       PERFORM INITIALIZE-DATA.
           DISPLAY TEMPLATE-SCREEN.
           MODIFY  wb-1             Value = "mailto:your@address".
           PERFORM WITH TEST AFTER  UNTIL EXIT-PRESSED
                   ACCEPT           TEMPLATE-SCREEN
           END-PERFORM.
           DESTROY TEMPLATE-SCREEN.
           STOP    RUN.

       INITIALIZE-DATA.

           INITIALIZE               KEY-STATUS.
           EXIT    PARAGRAPH.


Now, remember the web-browser component allows you some degree of control and also, look up the definiton of the mailto protocol, there is quite a few things you can fill in by default.

[Migrated content. Thread originally posted on 05 September 2005]

Hello,

I lilke to send email with my Acucobol application.

I downloaded msemail.zip from http://www.acucurp.com (sample programs).

I opened the project in Acubench. Generating and compiling of the program are all withour errors, but when I execute the program I get the following error message:
Class Not Registered.

How can I solve this problem.

(ps I tried already to register msmapi32.ocx, it succeeded, but did not solve the problem)
In the context of this, you may also want to know what email is being used, and for that this link may provide some useful information:

http://support.microsoft.com/kb/154359/