OFTP2 how to use Events in Partner config

We use OFTP2 1.0 build 37, and wonder how to use Events in Partner config?
Is it for example possible to send a email after every incoming/outgoing item ncluding ${Replacements}

Regards PITS



Profile picture for user service


the command you enter is forwarded to the shell/windows cmd. The replacement variables are replaced by the specific content. Means it depends on your OS what you are doing there. Using mail under non windows OS (which is a HERE command) in the way

mail -s "AS message arrived" receiver@mail.net <<< "Message received from ${sender}"

..does not work as the shell would wait endless for an EOF.



I have tried making it work with ssmtp to send emails but it's not working for me.
My command looks like this:
ssmtp recipient@our.company < /home/oftp/email_notifications/send_fail.mail

If I do enter the command manually into my shell it works fine.
In the logfiles it says that the shell command was executed (with returncode=0).

Any idea whats wrong?