mirror of
https://github.com/outline/outline.git
synced 2026-12-01 01:14:11 +03:00
fix: Outgoing emails trigger spoofing warnings due to exact matching from name
This commit is contained in:
1 parent
ff3c157554
commit
ffa7043cf0
1 file changed
+4
-1
@@ -191,9 +191,12 @@ export default abstract class BaseEmail<
|
||||
|
||||
const parsedFrom = addressparser(env.SMTP_FROM_EMAIL)[0];
|
||||
const domain = parsedFrom.address.split("@")[1];
|
||||
const customFromName = this.fromName?.(props);
|
||||
|
||||
return {
|
||||
name: this.fromName?.(props) ?? parsedFrom.name,
|
||||
name: customFromName
|
||||
? `${customFromName} via ${env.APP_NAME}`
|
||||
: parsedFrom.name,
|
||||
address:
|
||||
env.isCloudHosted &&
|
||||
this.category === EmailMessageCategory.Authentication
|
||||
|
||||
Reference in new issue
Block a user