Have you tried the "email" module?<br><br><a href="http://docs.python.org/lib/module-email.html">http://docs.python.org/lib/module-email.html</a><br><br><br><br><div><span class="gmail_quote">On 4/16/07, <b class="gmail_sendername">
Kharbush, Alex [ITCSV]</b> <<a href="mailto:alexf4@iastate.edu">alexf4@iastate.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<br>
<p><font size="2">I want to use the UNIX Mail program with python<br>
<br>
I need multiple entries with the os.system(cmd)line<br>
<br>
I will need something like this<br>
<br>
#output to unix<br>
<br>
Mail <a href="mailto:Alexf4@iastate.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Alexf4@iastate.edu</a> -f <a href="mailto:alexf4@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
alexf4@gmail.com</a><br>
Subject : hello alex<br>
<br>
#message part<br>
how is it going<br>
<br>
#the end of mail<br>
.<br>
<br>
When I write os.system("Mail <a href="mailto:Alexf4@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Alexf4@gmail.com</a>") my program will send email to where i want it to go<br>
<br>
MY PROBLEM is that i need to enter multiple lines of input into unix. os.system() takes only one argument<br>
<br>
thanks for the time</font>
</p>
</div>
<br>_______________________________________________<br>Tutor maillist - <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Tutor@python.org">Tutor@python.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">
http://mail.python.org/mailman/listinfo/tutor</a><br><br></blockquote></div><br>