mdipierro / evote

A system for secure, trusted, and verifiable voting on the web
Other
117 stars 41 forks source link

WARNING:web2py:email not sent #32

Open sanchomdv opened 6 years ago

sanchomdv commented 6 years ago

Hello,

I'm trying to run evote in a windows 10 environment. The site works perfectly: I can create elections, the database is functioning... but any mail is sent... the flash message in the up say: "mails sent succesfully" but in the DOS console of web2py I view the message: WARNING:web2py:email not sent

I'm touching the parameters in private/appconfig.ini but any change works... i already test with gmail, smtp and verifiyng that my windows can send mails with any mail client and my account config is properly set

the smtp sections of the appconfig.ini look like this:

; smtp address and credentials [smtp] sender = sancho@mdvnet.com server = smtp.mdvnet.com login = sancho@mdvnet.com:Passwordcorrect

Whats can be the problem?... it's some test mode on? can I debug or log the error?

Thanks

sanchomdv commented 6 years ago

Hello again :-)

I discovered that in \models\db.py i can edit the mailserver detection:

mail.settings.server = 'logging' if request.is_local else myconf.take('smtp.server')

mail.settings.server = myconf.take('smtp.server')

I commented the mail.setting.server line and replaced with the line below. The fact is that my windows computer don't have a local smtp server, so i understand that i ever must to use the smtp server of my isp provider.

So, the behaviour change but now the error in the web2py DOS console look like: WARNING:web2py:Mail.send failure:Connection unexpectedly closed: timed out

Can I verbose the error information in order to debug the problem?

Thanks

osgmano commented 6 years ago

Hello.

I'm running evote in Windows environment also and the email sending does't work.

The file 0.py is: EMAIL_SENDER = 'osgmano@gmail.com' EMAIL_SERVER = 'smtp.gmail.com:587' #'localhost EMAIL_LOGIN = 'osgmano@gmail.com:XXpasswordXX' GMAIL_LOGIN = 'osgmano@gmail.com:XXpasswordXX'

appconfig.ini ; smtp address and credentials [smtp] sender = osgmano@gmail.com server = smtp.gmail.com:587 login = osgmano@gmail.com:XXpasswordXX

db.py `## configure email mail = auth.settings.mailer mail.settings.server = 'logging' if request.is_local else myconf.take('smtp.server') mail.settings.sender = myconf.take('smtp.sender') mail.settings.login = myconf.take('smtp.login')'

I've tried some configurations and does't work, the console shows "WARNING:web2py:email not sent" and the content of the email sent.

What's the problem? Thanks

mcnamara-charles commented 3 years ago

Hi guys, I'm not sure if this is at all relevant anymore but since production stopped 6 years ago on this repository I'm currently working on a 3.9 version of this application