Details
-
Fix
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
-
1.3.1
-
None
-
any
Description
A sourceforge support request was posted by Michael, see https://sourceforge.net/forum/message.php?msg_id=4448670
Effectively there is a problem: Mails are sent without the resp. date, instead the header should contain "Date: ". As you can see from a typical mail header:
Received: FROM [192.168.2.3] BY localhost with hMailServer ; Sun, 5 Aug 2007 22:49:41 +0200
Message-ID: <10586786.1186346981281.JavaMail.ap@APXP>
From: "Job Scheduler localhost an APXP:4444" <scheduler@localhost.com>
To: ap@localhost.com
Subject: [warning] Task monitor_sample_warning mit Warnungen beendet
Mime-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_0_19175605.1186346981234"
X-SOS-Spooler-Job: monitor_sample_warning
Instead - between "From: " and "To: " - a header entry "Date: " should be given as in:
Date: Sun, 5 Aug 2007 22:12:02 +0200
This problem
- does not occur with JMail, as the "Date: " is automatically set by JMail
- occurs with JavaMail, the header should be created by the following code:
Message.setSentDate(new Date());
Please, add this line of code and verify the effective solution to the problem.