How did you get determine the filepath? When i do a search for “user_notifications” it shows files in /var/lib/docker/overlay2/<somelongrandom alphanumber>/diff/var/www/discourse/app/mailers/user_notifications.rb
I have about 5 results like that and I don’t know which one to use. Any ideas?
Doing this properly - adding a site setting called something like from_alias_prefix - would take me tops 2 hours (maybe 3 if it had to be a plugin). I’m not looking for the work (unless you paid me something bananas to work at the weekend), but you might want to consider posting on marketplace.
This changes the From header of emails from “Jane Doe” to “Jane Doe via <site_name>”. For Meta it will look like “Jane Doe via Discourse Meta”.
It uses the value of the email site title site setting or, if it isn’t set, the title setting as <site_name>.
The format of the From header can be customized with the email_from site text.