Comments (5)
I think it's a Swedish åäö somewhere, possibly in a template or something like that. It's a typical message for code that expects English only ascii but receives Swedish ascii. Unicode/UTF-8 should be the answer.
from chronos.
http://stackoverflow.com/questions/5910104/python-how-to-send-utf-8-e-mail
from chronos.
Have you verified that the Flasky example works with the same settings?
http://stackoverflow.com/questions/34259004/flask-mail-error-smtpserverdisconnectedplease-run-connect-first Indicates that you might be out of favour with Gmail?
Check out Sendgrid or Mailjet for transactional email services that probably is a better fit than Gmail for this application. There's usually a testing or dev mode that doesn't actually deliver the email but otherwise work the same.
from chronos.
When I ran the flasky-example with the same gmail-account it works without any problems. Will have to look and see if I have missed something in the configuration.
from chronos.
Do not ask me how I solved it, but now I get another error instead.. :)
File "/Users/hugolundin/Code/git-repositories/chronos/venv/lib/python3.5/site-packages/flask_mail.py", line 351, in send
connection.send(self)
File "/Users/hugolundin/Code/git-repositories/chronos/venv/lib/python3.5/site-packages/flask_mail.py", line 168, in send
message.as_string())
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/smtplib.py", line 845, in sendmail
msg = _fix_eols(msg).encode('ascii')
UnicodeEncodeError: 'ascii' codec can't encode character '\xe4' in position 674: ordinal not in range(128)
from chronos.
Related Issues (20)
- iCal calendar HOT 2
- Users can leave without saving data in `/admin/work-periods/edit/<id>`
- Bad link in `/admin/work-periods/edit/<id>` and `/admin/work-periods/add/`
- Replace `$SCRIPT_ROOT` with `window.location`
- Create a wiki page describing the order of implementing features HOT 1
- Minify & concat js and css into 1 js-file and 1 css-file automatically before deploying to production
- Should teachers have a `principal_id`-field that identifies them with a specific Principal? HOT 1
- Add work_hours to user-model
- Make sure css is prefixed and working in every browser
- Create a 'get started' guide for future developers HOT 1
- Principals and Admins should get a role when inserted by `./manage.py seed`
- Add proper relations when inserting objects in `./manage.py seed` HOT 1
- Local testing depends on development database HOT 1
- Add additional error-pages HOT 4
- `manage.py seed`: Update vocabulary to better reflect different levels of permissions
- What `/admin/`-routes should Principals respectively Moderators be allowed to view? HOT 4
- Create `/instructions`-page to show before users get to `/base-schedule`
- Increase the area of remove-deviation and add-deviation buttons HOT 3
- Protect AJAX calls from XSS and CSRF HOT 2
- Implement a working date-picker
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chronos.