I\'m hacking some support for DomainKeys and DKIM into an open source email marketing program, which uses a python script to send the actual emails via SMTP. I decided to go
from subprocess import Popen, PIPE p = Popen(['./foo.pl'], stdin=PIPE, stdout=PIPE) p.stdin.write(the_input) p.stdin.close() the_output = p.stdout.read()