jodd-mail/src/main/java/jodd/mail/SendMailSession.java
private void setSentDate(final Email emailWithData, final MimeMessage msgToSet) throws MessagingException {
		Date date = emailWithData.sentDate();
		if (date == null) {
			date = new Date();
		}
		msgToSet.setSentDate(date);
	}
private void setSentDate(final Email emailWithData, final MimeMessage msgToSet) throws MessagingException {
		Date date = emailWithData.sentDate();
		if (date == null) {
			date = new Date();
		}
		msgToSet.setSentDate(date);
	}
Sets sent date in msgToSet with sent date from emailWithData.

@param emailWithData {@link Email} with data
@param msgToSet      {@link MimeMessage} to set data into.
@throws MessagingException if there is a failure