, ,

Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

Sending Email from OIPI screen report (OIPI)

At 19 JUL 2021 04:38:19AM cmeyer wrote:

It appears that MAPI is no longer supported by Microsoft and using OI9.4.6, new work stations with the latest Office365 can no longer send an email from a report displayed on the screen. I believe the OIPI email function still uses MAPI to call Outlook. This no longer functions and hangs OI.

Within my application I have changed ALL my Outlook email calls to use OLE.

How can I send an email from an OIPI report screen display.

Any advice would be grateful.

Chris


At 19 JUL 2021 04:47AM Andrew McAuley wrote:

In the absence of an official solution, you could use the MD/VOC trick and create your own mail program using OLE that takes the same parameters as the system mail routine. That way your routine would be called instead of the system one?

The Sprezzatura Group

The Sprezzatura Blog

World leaders in all things RevSoft


At 19 JUL 2021 09:03PM cmeyer wrote:

What MAPI emailing routine needs replacing. I would expect the email procedure to be called following this sequence:

Export reports, select PDF, enter filename and check the email check box. Then press Ok

Select the "Print Range", press ok

This is when the replacement routine is to take over. What is the calling emailing program and parameters requires.

I already have my own OLE emailing routine so creating a procedure with the same SYSPROG name in my account (PBC) should suffice.

Any advice would be grateful.

Chris


At 19 JUL 2021 09:40PM cmeyer wrote:

Another question. Does the .net version in OI9.4.6 use the same MAPI routine. Also, Does the OI10 OIPI (not .net) use MAPI as the emailing option.

Chris.


At 20 JUL 2021 05:13AM Andrew McAuley wrote:

As ever profile logs are your friend. Set_Printer1 uses sendMail. Set_Printer2 seems to use MAPISendMail so you might have your work cut out a bit there as it seems to also logon and logoff. On the bright side, if you do intercept you then have complete control over all aspects of the mail.

I suspect 10 remains the same as mailing from OIPI is a little specialist (read we didn't even know you could!) so it's unlikely to have been revisited.

The Sprezzatura Group

The Sprezzatura Blog

World leaders in all things RevSoft


At 20 JUL 2021 07:26PM cmeyer wrote:

Does SendMail use SMTP. If so,then that does not solve my problem because the user need to access Outlook to enter an email address and other details.

The reason I am confused is that sendMail requires a server name, password etc. Aso, how can I get the location of the PDF file to be atttached to the email.

Chris


At 21 JUL 2021 02:55AM cmeyer wrote:

If I am to intercept MapiSendMail used by OIPI with my own OLE routine then how can I get the PDF file name the user has entered when exporting the report after the user has replied to the report pages dialog box. The file name is attached to the Outlook email.

Any advice would be appreciated.

Chris


At 21 JUL 2021 04:06AM Andrew McAuley wrote:

It will be passed as part of the message parameters. Check out MAPI_EQUATES for the positioning,

The Sprezzatura Group

The Sprezzatura Blog

World leaders in all things RevSoft

View this thread on the Works forum...