使用Javax邮件的消息发送时间不正确 [英] Message Sent time incorrect using javax mail

查看:134
本文介绍了使用Javax邮件的消息发送时间不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

欢迎大家 我有一个问题,当使用javax邮件从服务器向客户端发送电子邮件时 并将sendDate设置为

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());

电子邮件是在服务器时间内发送的 并且客户会在5个小时前立即收到电子邮件? 如何解决此问题以便在正确的时间发送和接收?

the email is sent in the server time and the client receive the email immediately with time 5 hours ago ???? how to fix this to send and receive in correct timing ?

推荐答案

这是服务器错误的时间问题,我将时间和时区设置为GMT,现在可以正常使用

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

这篇关于使用Javax邮件的消息发送时间不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆