I'm running 1.99.7 and none of the arguments to mail.send are valid. All
the mail variables must be set via mail.settings as far as I can tell. That
said, I have all my settings in place but things still not working. I'm
going to start digging into mail logs next.
On Tuesday, April 24, 2012 9:45:39 PM UTC+8, szimszon wrote:
>
> 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.
>
>