<div dir="ltr"><span style="font-size:12.8000001907349px">Carl,</span><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Back in the day you could send e-mail without validating user credentials on the outgoing mail server. I spoofed a sender's e-mail address (demonstration as proof of concept) for a message going through the servers at Oak Ridge National Lab in the mid 90's so no validation was a common practice back then. Sending without validation is the only thing that I can come up with to explain how or why the Ruby snippet works. But it does work. It's part of a project to use SMS to trigger and log events using Twilio and Gmail and IFTTT and Google Drive (kind of an Internet of Things: Duct-Tape Edition!)</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I would rather have a token or credential to validate for the outgoing mail server if validation is unavoidable. The thought of having my password setting in a directory in clear text gives me the heebee jeebees. I may use SMS for communication if I cannot figure out how to send e-mail without the clear text password.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Thanks for chiming in! I would much prefer to start with an expert opinion rather than have to sort through a mountain of Google hits!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 18, 2015 at 5:35 PM, Carl Nobile <span dir="ltr"><<a href="mailto:carl.nobile@gmail.com" target="_blank">carl.nobile@gmail.com</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">Just thought of something else.<div><br></div><div>If you are just trying to send an email from your local machine to any email address that can be done with no password, but you need mail services setup on your local machine which most people don't have setup. Then, once again, that could be written in any language.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Carl</div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 18, 2015 at 5:30 PM, Carl Nobile <span dir="ltr"><<a href="mailto:carl.nobile@gmail.com" target="_blank">carl.nobile@gmail.com</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">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"><div><div>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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><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><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></div></div>_______________________________________________<br>
Triangle, NC Embedded Computing mailing list<br>
<a href="mailto:TriEmbed@triembed.org" target="_blank">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><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>-------------------------------------------------------------------------------<br>Carl J. Nobile (Software Engineer)<br><a href="mailto:carl.nobile@gmail.com" target="_blank">carl.nobile@gmail.com</a><br>-------------------------------------------------------------------------------</div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>-------------------------------------------------------------------------------<br>Carl J. Nobile (Software Engineer)<br><a href="mailto:carl.nobile@gmail.com" target="_blank">carl.nobile@gmail.com</a><br>-------------------------------------------------------------------------------</div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><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>
</div>