Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Cognizant Technology Solutions
IN
Last activity: 7 Jan 2017 14:23 EST
unable to send email from 7.1.9 PVS
Hi,
I am not being able to send email from the PRPC 7.1.9 PVS system.
I have setup the sender part of the Email Account as follows -
Host(smtp) : smtp.gmail.com
port : 465
Use SMTPS : checked
user id : My gmail id
Upon clicking 'Test Connectivity' , I am seeing the following message -
Message
Hi,
I am not being able to send email from the PRPC 7.1.9 PVS system.
I have setup the sender part of the Email Account as follows -
Host(smtp) : smtp.gmail.com
port : 465
Use SMTPS : checked
user id : My gmail id
Upon clicking 'Test Connectivity' , I am seeing the following message -
Message
|
|
The network adapter in oracle virtualbox is set as ''Host only adapter'. If I try to switch it to 'Bridged Adapter' then I am not being able to connect to pega application.
Could you please help.
Thanks.
***Updated by moderator: Lochan to move from PSC to Pega Academy***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Swiftrinity
NL
First check the test connectivity of the "Receiver". If that gives a 'Success' response, then that means your VM's network configuration (be it NAT, bridged, host only whatever) is fine.
Next check the log for the source of the error "java.net.UnknownHostException: vapp: vapp: unknown error". It will most probably trace back to below line from function SendEmailMessage
final String fqdn = java.net.InetAddress.getLocalHost().getCanonicalHostName();
If that is the case, then add vapp to your '/etc/hosts' file. You can take help from here http://stackoverflow.com/questions/1881546/inetaddress-getlocalhost-throws-unknownhostexception.
If you're unable to modify the hosts file, a cheap trick would be to override the function SendEmailMessage and get rid of the line I mentioned above.
![](https://accounts.pega.com/sites/default/files/pega-user-image/25/REG-24866.png?source=PUMINIT)
![](https://accounts.pega.com/sites/default/files/pega-user-image/25/REG-24866.png?source=PUMINIT)
Pegasystems Inc.
US
See if the link below helps -
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Cognizant Technology Solutions
IN
Thanks for your reply.
I tried following the steps. However, the other adapter tabs are disabled apart from Adapter 1.
I can not connect to pega after changing it to NAT.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
IN
All of the VMs from Pega Academy are configured to use a Host-Only network adapter which means your host can access the guest but the guest can not access the internet.
If you want the guest to connect to the internet ; you can create a NAT adapter on the Virtual Box and enable it for the VM. You may have to do some network interface setting in the guest OS too.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-07/73c14f39-c13c-4511-8d71-05ea2da66848.jpg?h=a4486994&itok=5IKQAzlb)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-07/73c14f39-c13c-4511-8d71-05ea2da66848.jpg?h=a4486994&itok=5IKQAzlb)
375008155608
US
@SCHOWDHURY, were you able to get this figured out? I'm set up using a bridged network and my email account is set up using (smtp.gmail.com, port 465, use smtps yes). The Receiver connection is fine, but Sender fails to establish a session for email server "Exception caught connecting to email server; java.net.UnknownHostExceptions: vapp: vapp: unknown error". I'm using VirtualBox for this. The same email configuration works fine with VMWare Fusion.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Cognizant Technology Solutions
IN
I am facing the same issue. Were you able to get past it? Please let us know the solution if you have found one.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Cognizant Technology Solutions
IN
Did anyone try this - https://pdn.pega.com/support-articles/sending-email-through-gmail-not-working#comment-374646
Doesn't seem to work for me though. Please let me know if it works for you.
Accepted Solution
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Swiftrinity
NL
First check the test connectivity of the "Receiver". If that gives a 'Success' response, then that means your VM's network configuration (be it NAT, bridged, host only whatever) is fine.
Next check the log for the source of the error "java.net.UnknownHostException: vapp: vapp: unknown error". It will most probably trace back to below line from function SendEmailMessage
final String fqdn = java.net.InetAddress.getLocalHost().getCanonicalHostName();
If that is the case, then add vapp to your '/etc/hosts' file. You can take help from here http://stackoverflow.com/questions/1881546/inetaddress-getlocalhost-throws-unknownhostexception.
If you're unable to modify the hosts file, a cheap trick would be to override the function SendEmailMessage and get rid of the line I mentioned above.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-07/73c14f39-c13c-4511-8d71-05ea2da66848.jpg?h=a4486994&itok=5IKQAzlb)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-07/73c14f39-c13c-4511-8d71-05ea2da66848.jpg?h=a4486994&itok=5IKQAzlb)
375008155608
US
Thank you SamyaGanguly, that was the magic. Once I got in to edit the /etc/hosts file, I just changed
Proprietary information hidden localhost localhost.localdomain localhost4 localhost4.localdomain4
to
Proprietary information hidden vapp localhost localhost.localdomain localhost4 localhost4.localdomain4
and everything now works fine.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
TCS
GB
I am facing the same issue on sender (Exception caught connecting to email server; java.net.UnknownHostException: vapp: vapp: unknown error) on Virtual box(pvs 7.1.9) running on mac - can you suggest me what needs to be done.
On receiver too I get an error:
I am facing the same issue on sender (Exception caught connecting to email server; java.net.UnknownHostException: vapp: vapp: unknown error) on Virtual box(pvs 7.1.9) running on mac - can you suggest me what needs to be done.
On receiver too I get an error:
|
|
|
|
|