我正在使用主题中的连接设置发送电子邮件。我必须发送附件。代码有效,但我随机收到两个错误:
[java] INFO: Failure authenticating with BASIC ''@podxxxxx.outlook.com:443
[java] Error occured while sending the mail for: x@y.com
[java] microsoft.exchange.webservices.data.HttpErrorException: The remote server returned an error: (401)Unauthorized
[java] at microsoft.exchange.webservices.data.ServiceRequestBase.validateAndEmitRequest(Unknown Source)
或更经常:
[java] microsoft.exchange.webservices.data.ServiceResponseException: An internal server error occurred. Try again later.
[java] microsoft.exchange.webservices.data.ServiceResponse.internalThrowIfNecessary(Unknown Source)
有什么建议么?