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:
parent
f128682200
commit
abde15979b
|
@ -21,6 +21,7 @@
|
|||
|
||||
### Server
|
||||
- Enhance: sinceId/untilIdが指定可能なエンドポイントにおいて、sinceDate/untilDateも指定可能に
|
||||
- Enhance: メールの送信者としてサーバー名を表示するように (サーバー名が設定されている場合)
|
||||
- Fix: ジョブキューのProgressの値を正しく計算する
|
||||
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue