Here i am after some tests.
I’m using a dumb VM with Fangtooth, last not-already-released version of my script, connected with an outlook account (the slower to send email, it takes at least 2-3 times more than other provider)… and is working.
I receive an email nor shutting down from gui and terminal.
I have wrapped the actions in a script instead of using a command (not working for me), really simple (after have checked passwordless sudo):
#!/bin/bash
sudo su <<EOF
cd /mnt/Test/Script
python3 multireport_sendemail.py --subject "VM poweroff" --to_address "***@gmail.com" --mail_body_html "<h1>TEST</h1><p>shutdown script</p>"
EOF
I understand that my setup is minimal, but i neither needed to put higher timeouts or “sleep”… can you try as i do with this setup?