This function sends a google hangouts message to the recipient in the EMAIL variable.
It works in the following case where the email in inline with no quotes.
import os
EMAIL='[email protected]'
os.system('sudo echo "jjj" | sendxmpp -v -t [email protected]') #send hangouts message
However, when I insert the variable in its place, it doesn't send. There are no error message and the debug appears to be sending correctly, but I think it is sending to '[email protected]' rather than [email protected]. So it may be including the quotes,
os.system('sudo echo "jjj" | sendxmpp -v -t EMAIL') #send hangouts message