Home > PS Admin > Send email problem & SMTP Trace

Send email problem & SMTP Trace

To resolve any problem related to sending emails using SMTP server in PeopleSoft, we can enable SMTP trace option at appserver or process scheudler server level. This will produce the smtp log file giving us more details about why the send email is failing. 

Some common places where we could get the send email related issues are while Sendmail peoplecode function is failing when used in an application engine (process scheduler server related) or end users getting an online error message : Unable to Send Email, Invalid email ID etc while saving the page (Appserver related).   The error message may not be sufficient to know exactly where is the problem. To get more details about why send email is failing, you need to add/update the following in your appserver configuration (psappserv.cfg) or batch server Configuration (psprcs.cfg)  under SMTP Settings.

SMTPTrace=1

;1 means enabled, 0 – Disabled.

This setting is dynamic and does not require reboot of the Server, which is very good for troubleshooting in production environments. Once turned on, it will generate Trace file SMTP.LOG in LOGS Folder under
$PS_HOME\appserv\domain_name\logs\SMTP.LOG  for Appserver and $PS_HOME\appserv\prcs\domain_name\logs\SMTP.LOG for Batchserver.

This SMTP.LOG will show in detail where exactly the send email is failing and help us to fix the problem. Once the problem is fixed, disable the SMTP trace option.

Advertisements
  1. kalesh
    January 23, 2008 at 6:42 am

    this doc helped me alot.

    Thanks,
    kaesh.

  2. balaglobal
    January 23, 2008 at 1:36 pm

    Kalesh,
    I am glad, that it helped you.

    Regards,
    Bala.

  3. September 19, 2008 at 1:16 pm

    I enabled the smtptrace but it doesn’t generated any log file in logs

  4. balaglobal
    September 19, 2008 at 1:49 pm

    Sastry,
    where are you having problems (whether appserver or process scheudler server related)? and which config file you enabled smtp trace?
    If you are not sure, try enabling smtp trace in both appserver and process scheduler server.

    Regards,
    Bala

  5. Tom
    April 2, 2010 at 9:07 pm

    have you ever configured peoplesoft to use tls for sending emails? If so did it require a Pcode change or some sort of extra parameter in psappsrv.cfg?
    Thanks,
    Tom

  6. balaglobal
    April 3, 2010 at 1:28 pm

    Tom,
    yes I have configured PeopleSoft SMTP Settings in both app server and batch server. It does not reuire any Peoplecode change and no other extra paramter in psappsrv.cfg file other than SMTP settings section.

    If you are running a report and trying to send the report output by email, you need to configure SMTP Settings in Batch server configuration file (psprcs.cfg). Let me know, what is the problem you are facing?

    • Nithin
      May 11, 2011 at 9:37 pm

      Hi There,

      we are on new tools version 8.51 and trying to test the smtp functionality. Our e-mails system is being hosted by external hosting company which uses TLS authentication. I set all the parameters including a valid user i.d and password to authenticate. But I get this error message after connecting to the server:

      ALIAS: XRFFLPN_829549.PDF

      Sending email…

      Success – connected to [smtp20.serverdata.net]:25

      SMTP Error! 501 Syntax: HELO hostname

      Any thoughts. For the systemt o use TLS authentication , do we need to set any new parameters.

      Thanks,
      Nithin

      • Bala
        May 12, 2011 at 3:58 am

        Nithin,
        The only thing I would make sure for external smtp server is to make sure that the external smtp server is in the same network as of PeopleSoft server or map the external smtp server on your PeopleSoft server. If you are using different physical servers for App server and Process scheduler server, make sure that both these servers should have access to external smtp server.

  7. DK
    February 22, 2011 at 7:23 am

    Hi,

    changing SMTPTrace=1 in appsrv.cfg file didn’t generate any smtp.log
    Can some one please clarify ?
    Regads,
    DK

  8. Bala
    February 22, 2011 at 7:38 am

    DK,
    What is the issue you are trying to resolve?

  9. DK
    February 22, 2011 at 7:42 am

    I want to trace the email which are flow out using the appserver. In order to achieve that, in appsrv.cfg file i enable SMTPTrace=1 and reconfigured the appserver. No smtp logs are generated in appserver logs folder.

    Can you advice ?

    Regards,
    DK.

  10. Bala
    February 22, 2011 at 8:04 am

    How is the email getting generated? are you using Peoplecode or running a process to generate email? If you are submitting a proces to generate the emails, you need to configure process scheduler configuration to generate smtp log on process scheduler server.

  11. DK
    February 22, 2011 at 8:18 am

    Following is the Basic testing i am doing in notify option, to trace the email sent via appsever.

    In Peopletools-> Process scheduler –>Process monitor-> Notify.Specifying the Notification Details To: , Subject: and then apply.

    Once i do the above email will be sent to receipt, so this is option i am using to trace the email sent from the appserver, by doing this smtp log is not generated.

    Regards,
    DK.

  12. Bala
    February 22, 2011 at 8:43 am

    DK,
    you need to configure SMTP settings in process scheduler configuration to generate smtp log on process scheduler server.

  13. avinash
    August 1, 2012 at 9:18 pm

    Hi, I am facing similar issue. Configured App server config file for SMTP server with SMTP trace enabled still I don’t see SMTP trace and neither see mail when I use online notify option.

  14. April 8, 2014 at 6:42 am

    Hi,

    Is it advisable to turn ON SMTP Trace in production environment?
    I faced issue where some users doesn’t receive emails.
    It doesn’t come with a pattern but only happen occasionally.

    Thanks for the advise.

  15. Cnu
    April 22, 2014 at 9:41 am

    From PeopleBook 8.52

    You can send electronic mail requests, issued with workflow or PeopleCode, to the application server, which passes the requests to the specified mail server (SMTPServer). To specify the appropriate SMTP server and port to receive the email requests, you must edit the SMTP Settings section.

    When set in the PSAPPSRV.CFG file, these SMTP settings are not dynamic: SMTPGuaranteed, SMTPTrace, SMTPSendTime. They require a domain reboot to take effect.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: