技术文章 - CS200624

无法使用 ThingWorx Platform 中的邮件扩展发送电子邮件

已修改: 26-Dec-2024   


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

适用于

  • ThingWorx Platform 4.1 to 9.6

说明

  • 无法使用MailServer 事物模板SendMessage服务发送电子邮件
  • 升级到最新版本的 ThingWorx 后无法发送电子邮件。
  • 邮件服务器无法正常工作
  • 无法通过警报发送消息
  • 无法配置 ThingWorx 通过Gmail服务器发送电子邮件
  • 邮件服务器配置有问题
  • GMail 帐户已更新以测试连接安全性较低的应用程序,但连接仍然失败
  • 邮件服务器出现 504 网关超时错误事情:  

%02 网关超时错误

  • 测试服务时 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: c.t.w.BaseService] [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: E.c.q.l.c.Logger] [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: E.c.q.l.c.Logger] [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: E.c.q.l.c.Logger] [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: E.c.q.l.c.Logger] [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: E.c.q.l.c.Logger] [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: E.c.q.l.c.Logger] [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: S.c.t.t.m.MailThing] [I: ] [U:] [S: ] [P: ] [T:http-nio-8080-exec-10] Authentication failed: Please make sure the credentials are correct.



这是文章 200624 的 PDF 版本,可能已过期。最新版本 CS200624