ERPNext Conference 2019* ERPNext.com Blog

Equal sign in emails


#1

Dear Erpnext community,

I recently successfully updated my Erpnext v10 to v12, but now I got a weird problem with emails when I send an email like reset password email some letter gets replaced with an equal sign,

  • I use Exchange 2016 as my mail server and it was working fine with previse version form Erpnext v10.
  • when I used Gmail as my domain mail server I got received the Emails with no problem.
  • I installed a fresh Version from Erpnext v12 and the problem is the same.

Any idea how I can fix this,

Thanks :slight_smile:

Annotation%202019-09-07%20081737Annotation%202019-09-07%20081846


#2

I got the same issue here:

It seems it’s a known issue somewhat so check my own post for the GitHub issue raised and upvote it.


#3

ok, I have upvoted it.


#4

I have the same issue in other places e.g. emails sent from ‘Contact Us’ and document email notifications.


#5

So the issue is because the emails are going out in quoted printable, and I think ERPNext isn’t quite doing it right and Microsoft is being Microsoft.

In quoted printable, the correct line ending is CRLF, but ERPNext is only outputting LF. Microsoft, being Microsoft, is not dealing with this at all well…

The addition of the line:
message = message.replace(’\n’, ‘\r\n’)

at line 440 of frappe/email/queue.py ‘fixes’ this although it probably messes up other things (binary data?).


Error in Email Links Formatting [V12]