How pickup events operate when integrated with the MailEnable Mail Transfer Agent (MTA).
When the MTA moves a message between connectors, an
optional executable file can be run. This is called a pickup event. The MTA
pickup event will pass the mail message filename to the external application.
For example, a VB script that adds some text to the end of each email could be
activated through the pickup event. The application/script receives the
messagefilename and connectortype as parameters.
e.g. program messagefilename connectortype
Where program is the program filename, messagefilename is the name of the message file and connectortype is the type of messages (i.e. SMTP, LS, SF).
Be aware that the directory path to the message is
not passed to the program. The directory path will need to be read from the
registry in the external application.
Firstly, access the registry and determine the location of the connectors queue and construct the location of the message command file and the message itself.
Simple Visual Basic Example:
How to run multiple processes in a MTA Pickup Event: Article ME020204
|Product:||MailEnable (All Versions)|
|Class:||INF: Product Information|
|Created:||8/05/2002 8:32:00 PM|
|Revised:||Wednesday, May 4, 2016|