PeopleSoft SMTP setup with gmail
- 1. 1
PeopleSoft SMTP Setup with Gmail SMTP Server on Windows
Here is the Small number of steps you need to configure
This Configuration Works Tested on PeopleSoft Tools 8.53, 8.52 & 8.51 all are on Windows
8.53,
1. Download the Google Certificate from Here , then you can skip Step 2,3 & 4
http://s3.amazonaws.com/dbtutorblog/GmailSMTP/GoogleCert.zip
2. Open Google Chrome Browser
3. Download the Google Certificate
4. Download Certificate (continued)
Certificate
Prepared by www.dbtutor.com © DBTutor
- 17. 17
5.
PeopleSoft SMTP Setup with Gmail SMTP Server on Windows
So for Now We have successfully downloaded the Certificate.
Now Login to PIA and then navigate to
PeopleTools -> Security -> Security Objects -> Digital Certificates
Prepared by www.dbtutor.com © DBTutor
- 18. 18
PeopleSoft SMTP Setup with Gmail SMTP Server on Windows
6. Click “+” and select “Root CA” as the type, “GeoTrust Global CA” as the alias.
GeoTrust
CA
Prepared by www.dbtutor.com © DBTutor
- 19. 19
PeopleSoft SMTP Setup with Gmail SMTP Server on Windows
7. Click Add Root. Open the saved georoot.cer root certificate in notepad. Copy the entire content
and paste into the Edit box.
Prepared by www.dbtutor.com © DBTutor
- 23. 23
PeopleSoft SMTP Setup with Gmail SMTP Server on Windows
8. Go back to Digital Certificate page and click “+”. Select Remote as type and fill in
“GoogleInternetAuthority” as Alias and Equifax Secure CA as Issuer Alias
er Alias.
9. Click Import button. Open saved “GoogleInternetAuthority.c
GoogleInternetAuthority.cert” in notepad and copy the entire
GoogleInternetAuthority.c
content. Paste into certificate window and click OK.
content.
Prepared by www.dbtutor.com © DBTutor
- 25. 25
PeopleSoft SMTP Setup with Gmail SMTP Server on Windows
10. Finally we are done at PIA Section
11. Now we need to modify “psappsrv.cfg” & “psprcs.cfg
psappsrv.cfg”
psprcs.cfg”
Showing “psappsrv.cfg path
psappsrv.cfg”
Its depends where you have set <PS_CFG_HOME> path.
depends
<PS_CFG_HOME>
If you are not sure about the path, then follow the upper screenshots, it is used when you boot
the application server
server.
Prepared by www.dbtutor.com © DBTutor
- 26. 26
PeopleSoft SMTP Setup with Gmail SMTP Server on Windows
Before settings up the config file, we need to encrypt password with using PSCipher Utility.
encrypt
PSCipher can be found on webserver deploy directory i.e. where you have deploy webserver.
deploy
I have used “<PS_CFG_HOME>/webserv” path. Some installation may be used
<PS_CFG_HOME>
<PS_CFG_HOME>/webserv
“<PS_HOME>/webserv
<PS_HOME>/webserv”.
<PS_HOME>/webserv
Prepared by www.dbtutor.com © DBTutor
- 27. 27
PeopleSoft SMTP Setup with Gmail SMTP Server on Windows
Now AppServer Configuration File Editing. Open it Notepad/Notepad++ then search for “SMTP
SMTP”
section.
Prepared by www.dbtutor.com © DBTutor
- 29. 29
PeopleSoft SMTP Setup with Gmail SMTP Server on Windows
Please note that for “SMTPUserPassword section you need to put encrypted password that I
SMTPUserPassword”
SMTPUserPassword
have shown above If you SMTP not working properly then you try to put RAW Password instead
shown above.
SMTP
of “PSCipher” Encrypted password.
Follow the same Procedure for Process Scheduler “psprcs.cfg
psprcs.cfg”
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.
cs.cfg” that will tell you this:
By default it is set to “N”, so it is better idea not Change & Restart Process Scheduler
,
Scheduler.
[Process Scheduler]
...
Allow Dynamic Changes=N
Dynamic
...
Prepared by www.dbtutor.com © DBTutor
- 30. 30
PeopleSoft SMTP Setup with Gmail SMTP Server on Windows
12. SMTP Configuration Settings sample I have used.
; Dynamic change allowed for SMTPServer
SMTPServer=smtp.gmail.com
; 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=
; Dynamic change allowed for SMTPCharacterSet
SMTPCharacterSet=UTF-8
; Dynamic change allowed for SMTPEncodingDLL
SMTPEncodingDLL=
SMTPGuaranteed=0
SMTPTrace=1
SMTPSendTime=0
SMTPUserName=<Your Gmail Full User name like helloworld@gmail.com>
SMTPUserPassword=<Type your Encrypted Password Like {V1.1}9VSd2AqdiQ5jOjrrO/G42g==>
SMTPUseSSL=Y
SMTPSSLPort=465
SMTPClientCertAlias=
Now restart the application server or process scheduler Server. It is Important to do.
Prepared by www.dbtutor.com © DBTutor
- 31. 31
PeopleSoft SMTP Setup with Gmail SMTP Server on Windows
13. Now Test – Gmail SMTP in PeopleSoft
You can use any PeopleSoft “Notify” Button for testing. Here I’m used Web Profile “Notify”
m
button.
Prepared by www.dbtutor.com © DBTutor
- 33. 33
PeopleSoft SMTP Setup with Gmail SMTP Server on Windows
14. Check Your Mailbox.
Prepared by www.dbtutor.com © DBTutor
- 34. 34
PeopleSoft SMTP Setup with Gmail SMTP Server on Windows
15. Now We will check Process Scheduler Report Distribution Email Test
PeopleTools -> Process Scheduler -> System Process Requests
stem
Put Any Value for Run Control ID.
Prepared by www.dbtutor.com © DBTutor
- 37. 37
PeopleSoft SMTP Setup with Gmail SMTP Server on Windows
16. Run this PeopleCode for Checking.
Import PT_MCF_MAIL:*;
Local PT_MCF_MAIL:MCFOutboundEmail &eMail = create PT_MCF_MAIL:MCFOutboundEmail();
&eMail.Recipients = "psftadmin@company.com";
&eMail.CC = "";
&eMail.BCC = "";
&eMail.From = "psftadmin@company.com";
&eMail.ReplyTo = "psftadmin@company.com";
&eMail.Subject = "test subject"; /* email subject line */
&eMail.Text = "test body"; /* email body text */
&eMail.SMTPServer = "smtp.gmail.com";
&eMail.IsAuthenticationReqd = True;
&eMail.SMTPUserName = "psftadmin@company.com";
&eMail.SMTPUserPassword = "validPassword";
&eMail.SMTPUseSSL = "Y";
&eMail.SMTPSSLPort = 465;
Local integer &resp = &eMail.Send();
17. Some Troubleshoots.
Problem: The SMTP log shows the following relevant data:
Mon Feb 13 11:50:31 CST 2012 Mon Feb 13 11:50:31 CST 2012 DEBUG: getProvider()
returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "smtp.gmail.com", port 465, isSSL false
DEBUG SMTP: exception reading response: javax.net.ssl.SSLHandshakeException:
java.security.cert.CertificateException: Untrusted Server Certificate Chain
DEBUG SMTP: useEhlo true, useAuth true
Solutions: Check Digital Certificate, follow the step 1.
Problems: SMTP sendMail failed (server: 0). cannot send email to “” on Process Scheduler.
Solutions: Check “psprcs.cfg” for process Scheduler, Follow Step No. 12
Prepared by www.dbtutor.com © DBTutor