[TriEmbed] Simplest way to send e-mail from Python? Carl?

Carl Nobile carl.nobile at gmail.com
Mon May 18 16:30:44 CDT 2015


Shane,

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.

>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.

Carl


On Mon, May 18, 2015 at 5:16 PM, Shane Trent via TriEmbed <
triembed at triembed.org> wrote:

> 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.
>
> require 'mail'
>
>     Mail.deliver do
>       from      'user at gmail.com'
>       to          'trigger at recipe.ifttt.com'
>       subject  '#1235'
>       body     "Request from: #{name}."
>     end
>
> Is there a similar way to send e-mail from Python without requiring your
> e-mail password in clear text in the code?
>
> Thanks,
> Shane
>
> --
> A blog about some of my projects.  http://fettricks.blogspot.com/
>
> _______________________________________________
> Triangle, NC Embedded Computing mailing list
> TriEmbed at triembed.org
> http://mail.triembed.org/mailman/listinfo/triembed_triembed.org
> TriEmbed web site: http://TriEmbed.org
>
>


-- 
-------------------------------------------------------------------------------
Carl J. Nobile (Software Engineer)
carl.nobile at gmail.com
-------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.triembed.org/pipermail/triembed_triembed.org/attachments/20150518/5a68644d/attachment.htm>


More information about the TriEmbed mailing list