I have no little time sorry, I found the original testing code I used:

#!/usr/bin/env python

from gluon.tools import *

mail=Mail()
mail.settings.server='smtp server'
mail.settings.sender='sender@address'
mail.settings.login='user:pass'
print 
mail.send('rec@address','test1','sign+encrypt',cipher_type='gpg',sign_passphrase="pass
for gpg key")
print 
mail.send('rec@address','test2','sign',cipher_type='gpg',encrypt=False,sign_passphrase="pass
for gpg key")
print 
mail.send('rec@address','test3','encrypt',cipher_type='gpg',sign=False,sign_passphrase="pass
for gpg key")
print mail.send('rec@address','test4','no sign+no encrypt')
print mail.error


You need to have a trusted gpg key for rec@address in your keyring (web2py 
user's keyring) and for sign you need to have a private key in the keyring 
of a web2py user (the user running the web2py website)

2012. április 24., kedd 15:03:07 UTC+2 időpontban weheh a következőt írta:
>
> I'm still not getting this to work. Would you mind posting a complete 
> example? Thanks.

Reply via email to