Is there a way, in Python, to run a single php syntax command? I know I can just run os.system to call a separate php file but that seem excessive. So I want no separate file if possible.
Something similar to:
if send_mail == True:
#something to run single line php: mail($to,$txt,$subject)
$to,$txt, and$subjectbe getting values?os.systemis all you have. Is there a particular reason why you don't want to import anything, even thoughsubprocessis part of the python standard library (and thus comes pre-installed, along with all the other built-in tools)?