Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > smtplib & gnupg

Reply
Thread Tools

smtplib & gnupg

 
 
Brot
Guest
Posts: n/a
 
      02-20-2008
Hello,

at the moment my program sends mail with smtplib. Is there a chance to
sign and/or encode/cipher this mails with GnuPG?
If yes, does anyone have some sample code?

Regards
Bernd
 
Reply With Quote
 
 
 
 
Shane Geiger
Guest
Posts: n/a
 
      02-20-2008
To the best of my knowledge, GNUPG acts upon the body of the message.
If you think about it you should realize that the header of the message
cannot be encrypted, as it will be handled by mail servers that have no
knowledge of GNUPG or your encryption keys. I am further emboldened to
make this assertion because the encryption takes place before the
message is sent--that is, before the headers are completely formed.



Brot wrote:
> Hello,
>
> at the moment my program sends mail with smtplib. Is there a chance to
> sign and/or encode/cipher this mails with GnuPG?
> If yes, does anyone have some sample code?
>
> Regards
> Bernd
>



--
Shane Geiger
IT Director
National Council on Economic Education
| 402-438-8958 | http://www.ncee.net

Leading the Campaign for Economic and Financial Literacy

 
Reply With Quote
 
 
 
 
Miki
Guest
Posts: n/a
 
      02-21-2008
Hello Bernd,

> at the moment my program sends mail with smtplib. Is there a chance to
> sign and/or encode/cipher this mails with GnuPG?
> If yes, does anyone have some sample code?

Not exactly Python, but maybe http://codesorcery.net/old/mutt/mutt-gnupg-howto
might help.

HTH,
--
Miki <>
http://pythonwise.blogspot.com

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ANN: gnupg v0.2.0 released Vinay Sajip Python 0 07-17-2009 01:56 AM
ANN: A new version of the Python module which wraps GnuPG has beenreleased. Vinay Sajip Python 0 07-04-2009 03:12 PM
[SMTPLIB] how to send a "Multiline" mail with smtplib? Evan Python 3 06-23-2008 08:50 AM
pipes python cgi and gnupg byte8bits@gmail.com Python 1 01-09-2008 05:29 AM
GnuPG Encrypt/Decrypt with java code Kuding Java 0 01-25-2004 03:54 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57