Change Send As in Email Notifications

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?

@Jared_Needell nevermind found it.

This makes me feel :face_vomiting:

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.

1 Like

https://github.com/discourse/discourse/commit/c0a8bb9a919ff5a11ed453007723ba671b12977d

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.

4 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.