<div dir="ltr">Shane,<div><br></div><div>The only way to not send a password in clear text is to use one of the secure mail transports using either port 587 or 995, both are different and independent of programming language. The client in Python is quite easy, and I have written many in the past. The Ruby code snippet would need to use one of the two ports above in order to be secure which can be done in any language. Also the receiving end must support the one you choose or you won't even get a connection.</div><div><br></div><div>From the code I see above that would send everything in clear text. To not send a password or even use one would mean there was no password on the account, which I don't believe. So, I'm a little confused here as to what is happening.</div><div><br></div><div>Carl</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 18, 2015 at 5:16 PM, Shane Trent via TriEmbed <span dir="ltr"><<a href="mailto:triembed@triembed.org" target="_blank">triembed@triembed.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I want to send e-mail from Python. The code below sends e-mail from Ruby and does not require having your e-mail password in clear text. <div><br></div><div>require 'mail'</div><div><br></div><div><div>    Mail.deliver do</div><div>      from      '<a href="mailto:user@gmail.com" target="_blank">user@gmail.com</a>'</div><div>      to          '<a href="mailto:trigger@recipe.ifttt.com" target="_blank">trigger@recipe.ifttt.com</a>'</div><div>      subject  '#1235'</div><div>      body     "Request from: #{name}."</div><div>    end</div><div><br></div><div>Is there a similar way to send e-mail from Python without requiring your e-mail password in clear text in the code?</div><div><br></div><div>Thanks,</div><div>Shane</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div><div dir="ltr"><span style="color:rgb(0,0,0);font-family:HelveticaNeue-Light,'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:16px">A blog about some of my projects.  <a href="http://fettricks.blogspot.com/" target="_blank">http://fettricks.blogspot.com/</a></span><br></div></div>
</font></span></div></div>
<br>_______________________________________________<br>
Triangle, NC Embedded Computing mailing list<br>
<a href="mailto:TriEmbed@triembed.org">TriEmbed@triembed.org</a><br>
<a href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" target="_blank">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a><br>
TriEmbed web site: <a href="http://TriEmbed.org" target="_blank">http://TriEmbed.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">-------------------------------------------------------------------------------<br>Carl J. Nobile (Software Engineer)<br><a href="mailto:carl.nobile@gmail.com" target="_blank">carl.nobile@gmail.com</a><br>-------------------------------------------------------------------------------</div>
</div>