Giter Club home page Giter Club logo

Comments (5)

Limpan avatar Limpan commented on June 27, 2024 1

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.

Limpan avatar Limpan commented on June 27, 2024 1

http://stackoverflow.com/questions/5910104/python-how-to-send-utf-8-e-mail

from chronos.

Limpan avatar Limpan commented on June 27, 2024

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.

hugolundin avatar hugolundin commented on June 27, 2024

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.

hugolundin avatar hugolundin commented on June 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.