mdipierro/evote

WARNING:web2py:email not sent

sanchomdv opened this issue · 3 comments

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

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

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

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