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
A:
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"
Ryan Emerle
2009-02-04 00:18:50
If it is deprecated what can you use now?
hhafez
2009-02-04 00:24:56
"Expires" is the new one. Defined in RFC2156 and RFC4021. No idea if Outlook supports it.
derobert
2009-02-04 00:44:49
A:
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.
Craig P. Motlin
2009-02-05 18:44:33