I get this SMTP error on using the sendMail function

Failed to connect to the SMTP server at :25 (80,1)

but when I use the Notify delivered button, there is no error but the mail is also not delivered

Thanks for posting your question!

Akshata there are two scenarios:
a) Using Send mail you can execute it on Process Scheduler or Application Server.
You would need to configure the SMTP settings in psappsrv.cfg and psprcs.cfg file.

Here is where you would need to do the setting psappsrv.cfg

############################

[SMTP Settings]
;===============================
; Settings for SMTP mail
; Allow Dynamic Changes under [Domain Settings] has no effect on these controls
;===============================
; Dynamic change allowed for SMTPServer
SMTPServer=psp-smtpg-01

; Dynamic change allowed for SMTPPort
SMTPPort=25

; Dynamic change allowed for SMTPServer1 SMTPServer1=

; Dynamic change allowed for SMTPPort1
SMTPPort1=0

; Dynamic change allowed for SMTPSender
SMTPSender=PeopleSoft@peoplesoft.com

; Dynamic change allowed for SMTPBlackberryReplyTo SMTPBlackberryReplyTo=

; Dynamic change allowed for SMTPSourceMachine SMTPSourceMachine=%PS_MACH%.peoplesoft.com

; Dynamic change allowed for SMTPCharacterSet
SMTPCharacterSet=UTF-8

; Dynamic change allowed for SMTPEncodingDLL SMTPEncodingDLL=

SMTPGuaranteed=0

SMTPTrace=0

SMTPSendTime=0
#############################
psprcs.cfg

Same as above will be in process scheduler config file.

b) For Notification the issues is same. Since you use appserver for notification you would need to do the setup in psappsrv.cfg file.

Thanks

Gautam Subhedar
Sachin Deshmukh
Akash Awadhiya

Posted by Nitin Pai
Comments (4)
April 4th, 2009

Comments (4)

Ramesh Kumar - March 2nd, 2010

Hi All, This posting help me a lot.In my case i was able to send mail through workflow and AE but when i was trying to distribute the o/p through process schedular it was giving me error of SMTP sendmail fail.To solve this i have to give SMTPSourceMachine=SMTPServer( as i was not sure what to put) and it stat working.

Akash Awadhiya - May 21st, 2009

Hi Suresh, Your comment: Suresh Ravilla Says: April 13th, 2009 at 1:15 am How to disable ‘Advance search option’ through peoplecode? You can set "Disable Advanced Search Options" at Record Field properties. You have to set it for all search fields in that record which is specified as search record in the component. Thanks,

Suresh Ravilla - April 13th, 2009

How to disable 'Advance search option' through peoplecode?

Suresh Ravilla - April 9th, 2009

is there any system variable or a function that returns IP address of the server(not local machine) on which peoplecode executes ?

Comments are closed.