I'm adapting a little script to notify me when a file changes (comparing md5 checksums) but it was originally written to use sendmail (built into asuswrt/busybox). Needless to say it fails. What I'd like to do is use the email functionality in amtm to handle emails, but I just don't know where to start (my sending email is already set up and working in amtm).
Any pointers?
I'm adapting a little script to notify me when a file changes (comparing md5 checksums) but it was originally written to use sendmail (built into asuswrt/busybox). Needless to say it fails. What I'd like to do is use the email functionality in amtm to handle emails, but I just don't know where to start (my sending email is already set up and working in amtm).
Any pointers?
I'm adapting a little script to notify me when a file changes (comparing md5 checksums) but it was originally written to use sendmail (built into asuswrt/busybox). Needless to say it fails. What I'd like to do is use the email functionality in amtm to handle emails, but I just don't know where to start (my sending email is already set up and working in amtm).
Any pointers?
MerlinAU actually has all the email code integrated directly into the add-on, which may be a bit trickier to digest, but removes any dependencies on external code for MerlinAU.
However @Viktor Jaep 's BACKUPMON uses the Shared Email Library from @Martinski , which is what I would recommend as a starting point and is the simplest implementation.
The library is specifically designed to be a detached "all-in-one" solution other scripts/add-ons can call on to leverage email functionality: