关于JMAIL(100分请教,急)

来源:百度知道 编辑:UC知道 时间:2024/06/16 19:49:07
公司网站有个表格系统使用JMAIL组件自动发送邮件,使用@126.com的EMAIL作为收件地址可以收到表格,但是使用公司的邮箱却收不到表格,发件地址是zs-it@gtlsz.com.cn,收件地址是lawrencelau@gtlsz.com.cn,但是发件地址却不断收到系统退信,100分急求高手指教问题出现在哪?内容如下:MailEnable: Message could not be delivered to some recipients.
The following recipient(s) could not be reached:

Recipient: [SMTP:lawrencelau@gtlsz.com.cn]
Reason: 553 authentication is required

Message contents follow:

Received: from ABC-WEB6 ([127.0.0.1]) by home with MailEnable ESMTP; Tue, 02 Sep 2008 18:02:56 +0800
Subject: =?gb2312?Q?=A1=AA=A1=AA=C0=B4=D7=D4=CD=F8=D5=BE=B5=C4=D4=CB=B7=D1=B2=E9=D1=AF=D0=C5=CF=A2?=
Sender: "=?gb2312?Q?zs-it@gtlsz=2Ecom=2Ecn?=" <zs-it@gtlsz.com.cn>
From: "=?gb2312?Q?zs-it@gtlsz=2Ecom=2Ecn?=" <zs-it@gtlsz.com.cn>
Date: Tue, 2 Sep 2008 18:02:56 +0800
To: "=?gb2312?Q?lawrencelau@gtlsz=2Ecom=2Ecn?=" <lawrencelau@gtlsz.com.cn>
X-Priority: 3
Content-Transfer-Encoding: Quote

应该是你的JMail中没有设置认证模式把
设置JMail的认证模式
========================================
java.util.Properties props = new Properties();
props.put("mail.smtp.host", "smtp主机");
props.put("mail.smtp.auth", "true");
javax.mail.Session s = Session.getInstance(props);
=========================================
登录时指定用户名、密码:
----------------------
javax.mail.Transport transport = s.getTransport("smtp");
transport.connect("smtp主机地址", "用户名", "密码");
---------------------------------------

企业邮箱和126邮箱的不同在于 用户名
如abc@136.com的用户名是abc
而abc@gtlsz.com.cn 的用户名则是:abc@gtlsz.com.cn
你看是不是这有问题
还有就是一般企业邮箱的POP和SMTP都是一样的,拿你公司邮箱举例

其POP和SMTP服务器很有可能是mail.gtlsz.com.cn

需要认证啊。。貌似不支持客户端。。。你用zs-it@gtlsz.com.cn给自己发怎么样啊?能收到吗?