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
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 Windows registry in the
pickup event 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: https://www.mailenable.com/kb/viewarticle.asp?&File=me020204.htm
|Product:||MailEnable (All Versions)|
|Class:||INF: Product Information|
|Created:||8/05/2002 8:32:00 PM|
|Revised:||Monday, January 24, 2022|