[EMAIL PROTECTED] wrote:
> I am trying to drive mailx using popen.
>
> Here is what I am trying to do:
>
> a=popen('mailx -s "test" [EMAIL PROTECTED]','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/
--
http://mail.python.org/mailman/listinfo/python-list