简体   繁体   English

coldfusion imap设置邮件服务器参数时发生异常

[英]coldfusion imap An exception occurred when setting up mail server parameters

I am trying to access my Microsoft Exchange server with Coldfusion cfimap so I can move mail out of the junk mail folder. 我正在尝试使用Coldfusion cfimap访问我的Microsoft Exchange服务器,以便可以将邮件移出垃圾邮件文件夹。 I am using CF10. 我正在使用CF10。 I want to just test getting the folder list. 我只想测试获取文件夹列表。

<cfscript>
  variables.popAttributes = {
    server = ...,
    port = 995,
    username = ...,
    password = ...
  };
</cfscript>
<cfimap action="open"
  connection="variables.folders"
  secure="yes"
  server="#variables.popAttributes.server#"
  port="#variables.popAttributes.port#"
  username="#variables.popAttributes.username#"
  password="#variables.popAttributes.password#" />
<cfimap action="listallfolders" 
  connection="variables.folders"
  name="variables.folderQry" />
<cfdump var="#variables.folderQry#" />
<cfimap action="close"
  connection="variables.folders" />

When I try to run the above code, I get an exception from the "open" tag. 当我尝试运行上面的代码时,我从“ open”标记中获得了异常。

An exception occurred when setting up mail server parameters. 设置邮件服务器参数时发生异常。

This exception was caused by: javax.mail.MessagingException: +OK The Microsoft Exchange POP3 service is ready.; 此异常是由以下原因引起的:javax.mail.MessagingException:+ OK Microsoft Exchange POP3服务已就绪。 nested exception is: com.sun.mail.iap.ConnectionException: +OK The Microsoft Exchange POP3 service is ready.. 嵌套的异常是:com.sun.mail.iap.ConnectionException:+ OK Microsoft Exchange POP3服务已就绪。

I'd think that the message saying OK the service is ready should mean that it would move on to the next cfimap tag. 我认为消息说OK服务已经准备就绪,应该意味着它将继续到下一个cfimap标签。

You are attempting IMAP operations on a POP3 connection. 您正在尝试在POP3连接上执行IMAP操作。 POP3 has no concept of folders. POP3没有文件夹的概念。

Try port 993. 尝试端口993。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM