I have system 6.34.2 installed and the command: /tool e-mail … body=“$output” timeouts
when the variable $output become > 64kB (I guess) and script is aborted.
I was hit by this by using this script:
http://wiki.mikrotik.com/wiki/Monitor_logs,_send_email_alert_/_run_script
When the output is smaller, no problem in the script or e-mail sending.
Also I send whole configuration by e-mail to me from a file and it works.