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
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?
World leaders in all things RevSoft
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
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.
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.
World leaders in all things RevSoft
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
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
It will be passed as part of the message parameters. Check out MAPI_EQUATES for the positioning,
World leaders in all things RevSoft