else: sp = subprocess.Popen(['mail', '-f', FROM, '-s', 'Mail from Guest', 'supp...@superhost.gr'], sp.stdin=subprocess.PIPE) sp.communicate( input.encode(MESSAGE, 'utf-8') ) status = sp.wait()
this gives me an internal server error Cameron, but i guess iam writing it wrong. Thsi though doesnt provide an error: else: sp = subprocess.Popen(['mail', '-f', FROM, '-s', 'Mail from Guest', 'supp...@superhost.gr'], stdin=subprocess.PIPE) sp.communicate( bytes( MESSAGE, 'utf-8' ) ) status = sp.wait() but neither gets the mail across. -- http://mail.python.org/mailman/listinfo/python-list