A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/306189.html below:

Attempting to use popen with mailx

Attempting to use popen with mailx Attempting to use popen with mailxSteve Holden steve at holdenweb.com
Thu Sep 1 13:05:37 EDT 2005
caseydemail-python at yahoo.com wrote:
> I am trying to drive mailx using popen.
> 
> Here is what I am trying to do:
> 
> a=popen('mailx -s "test" 1234 at abc.com','w')
> print a>>, "This is a test"
> print a>>, "."
> a.flush()
> 
> 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?
> 
> Thanks!
> 
Does it help to add

a.close()

to the end of the code?

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC             http://www.holdenweb.com/


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4