开发者

Message Sent time incorrect using javax mail

greetings all i have a problem that when sending an email from the server to the client using javax mail and set the sentDate to

message.setSentDate(new Date());

the email is sent in the server time and the client receive t开发者_高级运维he email immediately with time 5 hours ago ???? how to fix this to send and receive in correct timing ?


it was a server incorrect time problem i set the time and the timezone to GMT and it works fine now


You might have to consider the timezones of client and the server and do the necessary calculation (usually done in the client end).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜