Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Be able to fix the sent date for a new email #235

Closed
Glassalau opened this issue Nov 15, 2019 · 3 comments
Closed

Be able to fix the sent date for a new email #235

Glassalau opened this issue Nov 15, 2019 · 3 comments

Comments

@Glassalau
Copy link

Glassalau commented Nov 15, 2019

I was wondering if it was possible to set the sent date with the date is given inside the headers. Actually "produceMimeMessage()" in org.simplejavamail.converter.internal.mimemessage.MimeMessageHelper always set the sent date with a new date.

I would like to choose my mail's sent date when sending it with the sendMail() method in org.simplejavamail.mailer.Mailer.

MimeMessageHelper.java:94
setHeaders(email, message);
message.setSentDate(new Date());

Best regards,

Glassalau

@bbottema bbottema added this to the 6.0.0 milestone Nov 16, 2019
@bbottema bbottema self-assigned this Nov 16, 2019
@bbottema
Copy link
Owner

Hello @Glassalau, that's a nice enhancement. I'll include it in the upcoming 6.0.0 release!

@bbottema bbottema changed the title Specified sent date inside header Be able to fix the sent date for a new email Nov 17, 2019
@bbottema
Copy link
Owner

Released in 6.0.0-rc1.

@bbottema
Copy link
Owner

6.0.0 has released as well, finally.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants