2

I am familiar with sending email from Java programs. Is it possible to configure the email so that Outlook will recognize that it should expire at a certain time?

4 Answers 4

4

I believe Outlook honors the, now deprecated, Expiry-Date header. You can add this to the MimeMessage headers. The format for the value is "EEE, d MMM yyyy hh:mm:ss Z"

2
  • If it is deprecated what can you use now?
    – hhafez
    Feb 4, 2009 at 0:24
  • "Expires" is the new one. Defined in RFC2156 and RFC4021. No idea if Outlook supports it.
    – derobert
    Feb 4, 2009 at 0:44
3

Add an "Expiry-Date" Header (see RFC1327).

1

Add a header to the MimeMessage called "Expiry-Date" using the (joda-time) format "EEE MMM d HH:mm:ss yyyy Z"

The other answers are good, but I used a slightly different format.

1

Header-Fields:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.