SMTP sendMail 失败解决办法

If you are seeing messages like this in your message log when running a process through the process scheduler and distributing the information via email:

SMTP sendMail failed (server yourserver.com:25). Cannot send email to example@test.com
Failed to connect to the SMTP server at :25

It indicates that the SMTP settings have not been configured correctly on your process scheduler servers. What you need to do is open your process scheduler configuration file (%PS_HOME%\appserv\prcs\<PRCSDB>\psprcs.cfg) and find the following section:

[SMTP Settings];=========================================================================; Settings for SMTP mail; All controls under SMTP Settings can be dynamically changed;=========================================================================SMTPServer=SMTPPort=25SMTPServer1=SMTPPort1=0SMTPSender=PeopleSoft@peoplesoft.comSMTPSourceMachine=SMTPCharacterSet=SMTPEncodingDLL=SMTPTrace=0SMTPSendTime=0SMTPUseSSL=NSMTPSSLPort=465SMTPClientCertAlias=SMTPUseSSL1=NSMTPSSLPort1=465SMTPClientCertAlias1=

Change the following parameters:

  • SMTPServer= the fully qualified address of your SMTP server. Make sure this server is accessible from the process scheduler server.
  • SMTPPort= default SMTP port is 25. If you are planning on using SSL, consult PeopleBooks. Make sure you can reach the target port (e.g. through telnet) from your process scheduler server.
  • SMTPSender= the send address to use for emails, e.g. 
  • SMTPSourceMachine= make sure you set this to the fully qualified name of your process scheduler.

You shouldn't need a restart if you have dynamic changes enabled in your configuration. Otherwise you will need a restart. There is a flag in the file psprcs.cfg that will tell you this:

[Process Scheduler]...Allow Dynamic Changes=N...

转载于:https://www.cnblogs.com/bryanchen/p/3386070.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值