Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARNING:web2py:email not sent #32

Open
sanchomdv opened this issue Jun 24, 2018 · 3 comments
Open

WARNING:web2py:email not sent #32

sanchomdv opened this issue Jun 24, 2018 · 3 comments

Comments

@sanchomdv
Copy link

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 = [email protected]
server = smtp.mdvnet.com
login = [email protected]:Passwordcorrect

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

Thanks

@sanchomdv
Copy link
Author

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
Copy link

osgmano commented Sep 9, 2018

Hello.

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

The file 0.py is:
EMAIL_SENDER = '[email protected]'
EMAIL_SERVER = 'smtp.gmail.com:587' #'localhost
EMAIL_LOGIN = '[email protected]:XXpasswordXX'
GMAIL_LOGIN = '[email protected]:XXpasswordXX'

appconfig.ini
; smtp address and credentials
[smtp]
sender = [email protected]
server = smtp.gmail.com:587
login = [email protected]: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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants