Skip to content

EmailService: Use proper display names in MailboxAddress #39

@ZohaiAli

Description

@ZohaiAli

Issue

In Infrastructure.EmailManager.EmailService, the MailboxAddress is currently used as:

message.From.Add(new MailboxAddress("noreply", _smtpSettings.UserName));
message.To.Add(new MailboxAddress(email, email));

Suggested Fix

If the recipient's name is available, use it as the display name:
message.To.Add(new MailboxAddress(userName ?? email, email));

Similarly, the sender's display name can be more descriptive:
message.From.Add(new MailboxAddress("NoReply - Indotalent", _smtpSettings.UserName));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions