Ok, I would then suggest first taking a good look at mod_exec (see above) and once you have something there that works, and gets triggered correctly when somebody logs into FTP, only THEN go the distance and start looking into how to get an email out.
If (as I suspect, I know nothing about mod-exec) you eventually get to a point where you can have a script called if somebody logs in, getting a call to sendmail into that script should not be at all difficult.
I'm assuming of course you know what shell scripting is in linux?
I have done something similar, but in PHP - I send email based on a script triggered by cron. Cron is just an application that you can tell "run this each hour" or "run that each day" etc. In my case cron calls a shell script that calls PHP to do daily processes on a database, then emails me if successful.
This might have relevance to your problem since I suspect mod_exec will do the "run this if somebody logs into ftp" bit - the rest you might be able to do similarly...
If you want more info on this, respond and I'll work an explanation up.
Last edited by rylan76; 01-27-2009 at 07:18 AM.