which I don’t want to happen since I don’t want personal addresses exposed. Is there a setting I’m missing to change the default sender name from “Notification”?
To add up to my question I tracked the issue down to the following line of code in /frappe/core/doctype/communication/communication.py
which is responsible of setting the “Notification” word as the From field in the email
if not self.sender or cint(self.outgoing_email_account.always_use_account_email_id_as_sender):
self.sender = formataddr([frappe.session.data.full_name or "Notification", self.outgoing_email_account.email_id])
Because the frappe.session.data.full_name is empty in these cases for some reason, the default word “Notification” is used.
What I did to alter the behaviour so it would use the email account name instead
was change the code as follows:
near line 173
self.sender = formataddr([frappe.session.data.full_name or self.outgoing_email_account.email_account_name, self.outgoing_email_account.email_id])
However this is a workaround working in my case so I’d still like to know if this could be altered somewhere else to work better because I really haven’t found any option to change this behavior in ERPNext.
Any news about this? I still get exposed personal email addresses and I have no clue how to work around this after the latest updates in communication.py