Mail does not work in scripts launched with launchd
Not sure what happened here, but I got it working now. AbandonProcessGroup definitely needs to be set to true. Also make sure no other errors exist. I had some error, and after clearing that out things started working. It helps by specifying log output files in the launchd jobs. Use StandardOutPath key for log output, and StandardErrorPath key for error output. I specified separate files for error and log output.