Issue with Sender Email on Comment Mentions

Hello,

I am facing an issue with email notifications in ERPNext.

Currently, when a user adds a comment to any DocType and mentions someone (e.g., @user), the notification email is sent via the system’s Default Email Account.

I need to customize this behavior with the following logic:

  1. Primary: The email should be sent from the User’s Email Account (the person who added the comment), provided their email account is configured in ERPNext.

  2. Fallback: If the user’s email is not configured, the email should be sent from a specific Support Email(e.g., support@example.com), rather than the system default account.

If there is existing functionality or a configuration setting to achieve this that I have missed, please let me know. I look forward to your response.

Hi @Ateeq

ERPNext allows multiple outgoing email accounts. You can create a dedicated outgoing account (for example, notifications@yourcompany.com) and mark it as default for outgoing. Each user can have its own email account for incoming and outgoing emails.

But it only supports one active default outgoing accountGLOBALLY”, so this only works if all activity emails should come from that dedicated account. It cannot selectively send comment-mention notifications from one account and everything else from another.