By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,818 Members | 1,347 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,818 IT Pros & Developers. It's quick & easy.

Attempting to use popen with mailx

P: n/a
I am trying to drive mailx using popen.

Here is what I am trying to do:

a=popen('mailx -s "test" 12**','w')
print a>>, "This is a test"
print a>>, "."

The email never sends, and I have to kill the
processes. I am new to python, so I am sure I am
doing something wrong.

Can anyone help?


Sep 1 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.