You need to use this program along with shadowsocks python version, and the ss-bash traffic monitor.
It read traffic statistics from ss-bash periodically, then send email to users according to the configured user infomation. Email template can also be customized.