SOMailSender.Interop Namespace |
This plugin API is used by SOCRM to read mailbox contents.SuperOffice supplies a SIMPLE-MAPI implementation inside SOCRM.For Outlook and other rich MAPI clients, it is preferred to open the corresponding client instead of using the built-in mailbox panel in SOCRM for reading mail.A plugin for reading the contents of an e-mail inbox from SOCRM.EXE using a given mail system.SOCRM will use a plugin to read the messages from the inbox if the user-preference [Mail] Inbox is set.You need to reference either READER.TLB or SOMAILREADER.INTEROP.DLL.These contain the interface definitions you need to implement in your plugin.Once your plugin has been implemented and registered using either REGSVR32 or REGASM, you need to install it into SuperOffice by adding it to the client's registry.You need to add an entry in the HKCU registry hive: HKCU\Software\SuperOffice\Mail\Readers\<addin-name>Here you must add a value:CLSID = {ab1234cd-1234-4567-4567-1233ddeeffcc}to identify the plugin.SOCRM will load the plugin next time it starts, and create an instance of the CLSID (that implements IMailReader).SOCRM will call StartSession to create a connection to the mail inbox.When the user clicks the INBOX button, the plugin will be used to read the list of messages for the inbox using the GetFirst and GetNext methods to return the message ids.The slower GetMail method is used to read the message details.Alternatively you can declare the command to show the local mail client inbox directly: HKCU\Software\SuperOffice\Mail\Inboxes\<addin-name>Command = \path\to\mail-client.exeParameter = /inboxThis is an alternative to implementing a reader plugin.
Interfaces
Enumerations