I just use mailsend to send the TXT log files after the sync command in scripts.
mailsend
sync
Much easier …