I have written a service which sends an email using gmail smtp server and trying to deploy it in the PCF cloud. The service is working in my local as it connects to internet to authenticate and sends mails. Now I wonder if it works in PCF as it needs internet to authenticate as well as send email. How it finds internet in PCF cloud?
Asked
Active
Viewed 1,459 times
2 Answers
0
You may have to use a mail service like SendGrid.
Here is a good article from Pivotal on how to use Sendgrid. If you are on PWS, you can get Sendgrid from the Marketplace.
The other thing you can try is to use push notification
.
Here's the link.

K.AJ
- 1,292
- 11
- 17
-
I don't know how it was functional, I did a push and it was working fine. – user09 Feb 08 '17 at 22:51
0
The short answer is yes. PWS is a cloud-native PAAS, sending an email via a service is a cloud-native method of inter-operating with other systems.
If on another hand you were using native system facility like sendmail, you would violating cloud-native tenants and your solution would not scale correctly with PWS.

Dmitry
- 1,513
- 1
- 15
- 33