forked from mirrors/misskey
enhance(backend): Add display name to email (#16256)
* feat(backend): Add display name to email Make it clear who sent emails. * docs(changelog): Add a description about this change Users can notice what's changed by this PR.
This commit is contained in:
@@ -145,7 +145,10 @@ export class EmailService {
|
||||
try {
|
||||
// TODO: htmlサニタイズ
|
||||
const info = await transporter.sendMail({
|
||||
from: this.meta.email!,
|
||||
from: this.meta.name ? {
|
||||
name: this.meta.name,
|
||||
address: this.meta.email!,
|
||||
} : this.meta.email!,
|
||||
to: to,
|
||||
subject: subject,
|
||||
text: text,
|
||||
|
||||
Reference in New Issue
Block a user