Question
Accenture
AU
Last activity: 19 Jul 2017 6:54 EDT
PegaCHAT provisioning - Register company not working
Hi Team, I am not able to 'register company' while setting up PegaCHAT.
[If there is any document on how to set up SMTP server configurations for PegaCHAT, please forward]
Issue:
When we try to Register Company, we get “Oops! Something went wrong”. We can’t find any logs or error message.
Every time we try registering the company, company name gets updated in mongodb collection, but above error is thrown on PegaCHAT page. When we hit "Resend Account Details", the email is not dispatched.
Triage:
Below is what we tried
- Installed ‘sendmail’ and tried to send email from backend – IT WORKED
echo 'test' | sendmail Proprietary information hidden
Sendmail is listening on port 25
Telnet to smtp.gmail.com on port 587 and 25 works - Configured config.json with all below combinations – NOTHING WORKED
Host: smtp.gmail.com, <PegaCHAT server hostname>
Port: 25, 587
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Accenture
AU
Hi,
Solution is, when we use gmail smtp server, a account user/pass detail has to be provided in the config file. Pega Chat or Co-Browse will login to the account to dispatch emails during registration.
Also, the gmail account should have "allow less secure app" ON. Gmail will not permit login from any less secured app, and unfortunately Pega follows under that category.
The gmail account provided in the config file should not be used for registering any company.
P.S: In my case, port used is 587 and it is not listening to any service
Final configuration:
"mail_server_config":{
"service": "SMTP",
"host": "smtp.gmail.com",
"port": 587,
"auth": {
"user": " Proprietary information hidden",
"pass": "yyyyy"
},
"from_address": "",
"to_address": ""
},
Regards,
Sreethi
BUPA
AU
Hi Sree,
I have installed Pega CHAT 7.1 on premise and also configured the same. This is being used in our current project. Below is the sample configuration used in my project.
"mail_server_config":{
"service": "SMTP",
"host": "mailhost.ldn.xxxxbank.com",
"port": 25,
"from_address": " Proprietary information hidden",
"to_address": " Proprietary information hidden"
},
"admin_credentials": {
"user" : "firefly",
"password" : "admin"
}
It should be mail server host name and not Pega CHAT server hostname. Pls let me know if more help is needed.
Accenture
AU
Hi Swarne, Thanks for the reply.
I am using the below configuration
"mail_server_config":{
"service": "SMTP",
"host": "smtp.gmail.com",
"port": 587,
"auth": {
"user": "",
"pass": ""
},
"from_address": " Proprietary information hidden",
"to_address": ""
},
smtp.gmail.com is the mail server host name.
Please let me know if you have made any configuration on PegaCHAT server for the same. I have installed sendmail on PegaCHAT server and it is listening on port 25. I have tried changing the mail configuration to port: 25 as well, but no luck.
And, are these required for "registering a company" as well?
BUPA
AU
Hi Sree,
Can you pls try removing
"auth": {
"user": "",
"pass": ""
},
and provide to_address as well. Make it similar to the code snippet I shared earlier.
Mail server is needed to register a company. Pega CHAT server will send the JS code in an email post provisioning.
Updated: 21 Jun 2017 2:02 EDT
Accenture
AU
Hi SwarnenduM,
Below is our configuration now. I did not work.
"mail_server_config":{
"service": "SMTP",
"host": "smtp.gmail.com",
"port": 25,
"from_address": "email address",
"to_address": "email address"
},
Note: This server does not have sendmail installed. I tried with both port 25 and 587.
No luck
***Updated by moderator: Lochan to remove personal email address***
Accenture
AU
Can you confirm if sendmail has to be installed on the PegaCHAT server and should be listening on the port mentioned in config.json?
BUPA
AU
Hi Sree,
In our environment, mail server is installed and we are using the same. This could be a problem with gmail server. Pega CHAT cloud is also using a different registered mail server. Is it possible to try with an installed mail server?
Accenture
AU
Hi Swarne,
Thanks for the reply. I will check the possibility of installing mail server on Pega CHAT server.
Can you let me know in which port your mail server is listening? Is it 587?
Accepted Solution
Accenture
AU
Hi,
Solution is, when we use gmail smtp server, a account user/pass detail has to be provided in the config file. Pega Chat or Co-Browse will login to the account to dispatch emails during registration.
Also, the gmail account should have "allow less secure app" ON. Gmail will not permit login from any less secured app, and unfortunately Pega follows under that category.
The gmail account provided in the config file should not be used for registering any company.
P.S: In my case, port used is 587 and it is not listening to any service
Final configuration:
"mail_server_config":{
"service": "SMTP",
"host": "smtp.gmail.com",
"port": 587,
"auth": {
"user": " Proprietary information hidden",
"pass": "yyyyy"
},
"from_address": "",
"to_address": ""
},
Regards,
Sreethi