32
Views
11
Comments
How to send confirmation mail after payment is successful
Question

Hello,

I wanted to ask that after payment is successful it will send a confirmation mail to user "your payment for this course is successful" and admin"This user has paid this much to a course".

please suggest some logic for this if possible you could send .oml file for it.

Thank you

Rank: #679

Hi Tapas,

  Some payment  gateway API  also provide this mail functionality. is it's not provide in your case we need to write

your own login like if  payment gateway API return some token after successful payment     you need to check that token and send the mail

thanks

CV sharma

Rank: #151
SendEmailExample.oml

Rank: #15823

Hello Agno,

Thank you for this.. but I want to add one point that when we will click on the "pay" button then the system will send a confirmation mail to the user's mail id(such as Gmail, outlook, etc). 

So could you tell me how to do that?

Regards,

Tapas


Rank: #151

The first step is to configure your email that will send emails to users, in service center, example:


Remember to activate the IMAP / SMTP configuration on your email server, in my case I used gmail.com:


for gmail i had to activate this setting for less secure apps:



now let's go to the code!

Create an email as shown below:


Check security http:

then, in the action of your "PAY" button, make the update to pay the bill, and then drag and drop the email we created earlier:


the FROM field must be the email configured in your email account at the service center;

and the TO field, you assign the destination email to which you want to send the email (hotmail, gmal, etc.):


I did this procedure and the email arrived correctly:

was there any doubt?


see the attached example .OML.

Regards.

SendEmailExample.oml

Rank: #15823

Hi,  I have done the same

still I am not receiving any email

Rank: #151

Hello,

If you do not receive an email, see this service center tab for the reason for the error:

share with us the error, please.

Regards.

Rank: #15823

Hi, Please check this error. I am not getting.

Rank: #679

Hi tapas,

This error is related to email configuration.


Rank: #15823

Hello,

Could you please show me steps how to fix this?

Regards,

Tapas

Rank: #15823

Hello,

Thank you for the .oml file it is working properly

But, I am using a reactive web page .. so could you please send any solution for it

-how to use sending mail in reactive web page after successful payment

Regards,

Tapas

Rank: #151

Hi, see this video:

https://www.youtube.com/watch?v=ks5CbksqED8

here explains how to consume the email element you have in the OML I gave you.

You will add an element (email) from traditional in your Reactive application.

More one post about:

https://www.outsystems.com/forums/discussion/54704/email-widget-in-reactive-web-applications/

Regards.