No description
Find a file
Chinmay D. Pai ce2a0854db
fix(email): safe_encode to avoid smtp ascii encoding issue
fixes issue where smtplib fails to encode the mail as ascii

Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 60, in application
    response = frappe.api.handle()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/api.py", line 55, in handle
    return frappe.handler.handle()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 22, in handle
    data = execute_cmd(cmd)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/handler.py", line 61, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 1042, in call
    return fn(*args, **newargs)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/user/user.py", line 801, in reset_password
    user.reset_password(send_email=True)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/user/user.py", line 234, in reset_password
    self.password_reset_mail(link)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/user/user.py", line 253, in password_reset_mail
    "password_reset", {"link": link}, now=True)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/user/user.py", line 298, in send_login_mail
    delayed=(not now) if now!=None else self.flags.delay_emails, retry=3)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 476, in sendmail
    inline_images=inline_images, header=header, print_letterhead=print_letterhead)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/queue.py", line 162, in send
    print_letterhead=print_letterhead)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/queue.py", line 185, in add
    send_one(email_queue.name, now=True)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/queue.py", line 475, in send_one
    raise e
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/queue.py", line 415, in send_one
    smtpserver.sess.sendmail(email.sender, recipient.recipient, message)
  File "/usr/lib64/python3.6/smtplib.py", line 855, in sendmail
    msg = _fix_eols(msg).encode('ascii')
UnicodeEncodeError: 'ascii' codec can't encode characters in position 335-339: ordinal not in range(128)

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-01-03 14:56:15 +05:30
.github fix: Update stale message 2019-11-04 13:05:36 +05:30
.travis fix(minor): server script enabled 2019-10-11 14:16:49 +05:30
ci add my_config patch to travis 2014-10-12 18:54:44 +05:30
cypress fix: fix depends on ui test 2019-12-31 16:01:59 +05:30
frappe fix(email): safe_encode to avoid smtp ascii encoding issue 2020-01-03 14:56:15 +05:30
rollup fix(rollup): Use terser instead of uglify 2019-04-26 15:52:58 +05:30
.codacy.yml fix(minor): rename "queue" to "frequency" 2019-11-07 12:14:09 +05:30
.deepsource.toml chore: Add Deepsource 2019-10-26 18:28:11 +05:30
.eslintignore Added files in .eslintignore, updated globals 2017-06-02 15:00:15 +05:30
.eslintrc chore: Add strip_number_groups to eslint globals 2019-10-20 09:37:49 +05:30
.gitignore fix: Undo gitignore entry 2019-02-26 16:54:55 +05:30
.mergify.yml chore: Dont merge if squash label is added (#8447) 2019-09-18 13:25:38 +05:30
.pylintrc reactor(scheduler): created "Scheduler Job Type" and cleaned up scheduler 2019-11-07 12:14:09 +05:30
.snyk fix:updated as per hotfix 2019-06-20 18:50:20 +05:30
.travis.yml fix: updated travis config 2019-11-15 13:37:50 +05:30
attributions.md Non Pour Accent! (#5427) 2018-04-10 22:53:42 -08:00
bandit.yml fix(tests): tests and linting 2019-02-13 16:50:34 +05:30
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2017-09-12 09:14:34 +05:30
cypress.json fix(ui-tests): Pick admin password from config (#7842) 2019-07-05 12:24:07 +05:30
generate_bootstrap_theme.js fix: Common scss options for theme generator and rollup scss 2019-02-19 18:04:56 +05:30
hooks.md Non Pour Accent! (#5427) 2018-04-10 22:53:42 -08:00
LICENSE Update LICENSE 2018-04-12 17:27:20 +05:30
Makefile [NEW] Makefile to clean cache without restart 2018-03-08 15:18:32 +05:30
node_utils.js feat(build): Log build errors in browser console (#5932) 2018-08-07 14:42:39 +05:30
package.json feat: Optionally remove seconds from datetime (#8531) 2019-12-25 14:54:28 +05:30
README.md fix: new frappe framework logo 2019-01-29 17:39:17 +05:30
requirements.txt fix(requirements): remove psycopg2 from requirements 2019-12-31 18:19:15 +05:30
SECURITY.md chore: updated Security policy and issue template 2019-10-12 12:06:36 +05:30
setup.py fix(unicode): Import unicode_literals in every file (#6805) 2019-01-25 11:56:27 +05:30
socketio.js frappe: refactor async to realtime (#6015) 2018-08-28 15:31:20 +05:30
yarn.lock feat: Optionally remove seconds from datetime (#8531) 2019-12-25 14:54:28 +05:30

Full-stack web application framework that uses Python and MariaDB on the server side and a tightly integrated client side library. Built for ERPNext

Table of Contents

Installation

Install via Frappe Bench

Contributing

  1. Pull Request Requirements
  2. Translations

Website

For details and documentation, see the website https://frappe.io

License

This repository has been released under the MIT License.