Integrated portal custom email form

I have a contact form inside pages on Integrated Portal Apigee SaaS, I need to send an email to the end-user as well admin on click of contact form. Is there a way I can add such functionality into Integrated portal

Solved Solved
0 6 458
1 ACCEPTED SOLUTION

bertrandbely
Participant II

Hi,

We had the same need. So we created a specialised api proxy.

In this api proxy, we created a python script using smtplib.

The api proxy gets the posted parameters from the portal to send an email to an administrator.

Hope that can help.

Bertrand

View solution in original post

6 REPLIES 6

bertrandbely
Participant II

Hi,

We had the same need. So we created a specialised api proxy.

In this api proxy, we created a python script using smtplib.

The api proxy gets the posted parameters from the portal to send an email to an administrator.

Hope that can help.

Bertrand

Hi,

Can you please explain on how to get posted parameters from the portal using this proxy?

I have a requirement to trigger email notification to admin when an app is created in Integrated portal. Please help me on this.

Thanks & regards,

Jincy

Hi Bertrand, would it be possible to share the code please? @bertrand bely

Hi,

Here the python file.

Then you have to create in Apigee Edge designer a python ressource and a python policy to execute this ressource.

Bertrand

sendemail.zip

Thank you very much Bertrand.

I am now thinking on how to protect some vault credentials which would give me access to the vault to retrieve a smtp (E.g. Sendgrid) key at runtime

Another option is to use Google Forms, as explained here

You can configure Google Forms to notify the admin (explained in the above link).

You can also configure it to send response receipts.

9793-screen-shot-2020-04-02-at-094130.png