diff --git a/app/client/modules/notifications/components/notification-forms/email-form.tsx b/app/client/modules/notifications/components/notification-forms/email-form.tsx index 43a7daf8..6231b5e3 100644 --- a/app/client/modules/notifications/components/notification-forms/email-form.tsx +++ b/app/client/modules/notifications/components/notification-forms/email-form.tsx @@ -82,6 +82,20 @@ export const EmailForm = ({ form }: Props) => { )} /> + ( + + From Name (Optional) + + + + The display name shown in the email client. + + + )} + /> encodeURIComponent(email)).join(","); const useStartTLS = config.useTLS ? "yes" : "no"; + const fromNameParam = config.fromName ? `&fromname=${encodeURIComponent(config.fromName)}` : ""; - return `smtp://${auth}${host}/?from=${encodeURIComponent(config.from)}&to=${toRecipients}&starttls=${useStartTLS}`; + return `smtp://${auth}${host}/?from=${encodeURIComponent(config.from)}${fromNameParam}&to=${toRecipients}&starttls=${useStartTLS}`; };