技术文章 - CS200624

使用 ThingWorx 平台和 ThingWorx 应用的邮件扩展程序无法发送电子邮件,并出现错误“无法发送已记录事件的错误电子邮件”。

已修改: 06-Apr-2026   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • ThingWorx Platform 4.1 to 10.0

说明

  • 无法使用基于邮件服务器 Thing模板Thing上的SendMessage服务发送电子邮件。
  • 邮件服务器出了问题
  • 尝试通过自定义 SMTP 域发送电子邮件时,日志中观察到身份验证异常。
  • 无法通过提醒发送消息
  • 无法配置 ThingWorx 通过Gmail服务器发送电子邮件
  • 邮件服务器配置出现问题
  • 为了测试,Gmail 帐户已更新为“连接安全性较低的应用” ,但连接仍然失败。
  • 邮件服务器Thing 出现504 Gateway Time out错误  

网关超时错误

  • 在 Composer 中测试服务时出现错误信息:
Unable to Invoke Service Service_Name on Thing_Name : Could not connect to SMTP host: smtp.gmail.com, port: 465

Unable to Invoke Service SendMessage on TW.RSM.SFW.Thing.MailServer : <ip address> SMTP; Client was not authenticated to send anonymous mail during MAIL FROM 

Unable to send error email for logged incident
  • \ThingworxStorage\logs\ApplicationLog.log中出现错误:
     L: ERROR] [O: ctwBaseService] [I: ] [U: <username>] [S: ] [T: http-nio-80-exec-8] [context: com.thingworx.webservices.context.HttpExecutionContext@4d87bcdb][message: Unable to Invoke Service SendMessage on <Thing> : null] Wrapped com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.60 SMTP; Client does not have permissions to send as this sender ### Unable to Invoke Service SendMessage on <MailServerThing> : Unable to send error email for logged incident Transaction has been marked as a failure for request /Thingworx/Things/<MailServerThing>/Services/SendMessage [L: ERROR] [O: EcqlcLogger] [I: ] [U: Administrator] [S: ] [P: ] [T: https-openssl-nio-8443-exec-10] Error sending email due to [535 5.7.3 Authentication unsuccessful_].The last server response was [535 5.7.3 Authentication unsuccessful_] with return code [535].The error originated on host [<hostname>]. [L: ERROR] [O: EcqlcLogger] [I: ] [U: Administrator] [S: ] [P: ] [T: https-openssl-nio-8443-exec-10] Unable to send error email for logged incident: failed to connect, no password specified? [L: ERROR] [O: EcqlcLogger] [I: ] [U: Administrator] [S: ] [P: ] [T: https-openssl-nio-8443-exec-10] Unable to Invoke Service SendMessage on MailTest : Unable to send error email for logged incident java.lang.Exception: Unable to send error email for logged incident [L: ERROR] [O: EcqlcLogger] [I: ] [U: Administrator] [S: ] [P: ] [T: https-jsse-nio-8443-exec-1] Error sending email due to [Couldn't connect to host, port: smtp, 25; timeout 30000].The last server response was [null] with return code [0].The error originated on host [HostName]. [L: ERROR] [O: EcqlcLogger] [I: ] [U: Administrator] [S: ] [P: ] [T: https-jsse-nio-8443-exec-1] Unable to send error email for logged incident: Couldn't connect to host, port: smtp, 25; timeout 30000 [L: ERROR] [O: EcqlcLogger] [I: ] [U: Administrator] [S: ] [P: ] [T: https-jsse-nio-8443-exec-1] Unable to Invoke Service SendMessage on MailServerThing : Unable to send error email for logged incident [L: ERROR] [O: ScttmMailThing] [I: ] [U:] [S: ] [P: ] [T:http-nio-8080-exec-10] Authentication failed: Please make sure the credentials are correct. Error sending email due to [IOException while sending message].The last server response was [354 go ahead_] with return code [354].The error originated on host [w6035]. Unable to send error email for logged incident: IOException while sending message
这是文章 200624 的 PDF 版本,可能已过期。最新版本 CS200624