Skip to content

Add java.time support to MimeMessageHelper #36936

@OrangeDog

Description

@OrangeDog

org.springframework.mail.javamail.MimeMessageHelper currently only supports the deprecated java.lang.Date class for setSentDate.

While this is clearly because jakarta.mail.internet.MimeMessage is the same, it would be helpful for the helper to provide conversion from e.g. java.time.Instant, so callers do not need to suppress warnings when using it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)status: waiting-for-triageAn issue we've not yet triaged or decided on

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions