I encountered this bug before, but could never reproduce it. The problem is that when names are enabled on a forum, the original poster’s name is used instead of inviter’s. If names are disabled, then no name is displayed “via FORUM_NAME noreply@example.com”, but it should be “USERNAME via FORUM_NAME noreply@example.com”.
I fixed both issues in this PR:
Thank you for the bug report!