17
Views
5
Comments
Solved
How to send email with attachment in Reactive Web App?
Question

Hi guys!

I'm confusing about how to send email with attachment in the Reactive Web APP. Do we have any other ways to realize it

instead of using traditional web app?

Best regards, Thanks!


Rank: #116
Solution

Hello Gu,

Hope you are doing well.

Sending e-mails is a feature that applies only to Traditional Web Applications (because it is Server Side). That's why you don't have that option in Reactive Web modules.

For this purpose, you will need a Traditional Web module, with a public Server Action that will send the e-mail. 

In therms of architecture, what is usually done is to have a Core Layer module, defined as a Traditional Web module. In this module (Server Side), you may have your logic for sending e-mails.

Back to your Reactive Web module, you can use a client or server action to call this public server action from the Traditional Web module.


About the attachment, you have Attach File tool.

You should use it inside the Preparation of the e-mail.


Hope that this helps you!


Kind regards,

Rui Barradas

Rank: #1337

Hi Gu Kang ,

Reactive web apps do not have the same functionality for creating and sending mails as traditional web apps.

In think this could work:

  • Create Email Template in  a traditional Web Application
  • Create Send Email Action in a traditional Web Application
  • In Reactive App, add dependency to your traditional web application module where you have web template and action to send mail
  • In Reactive App, add one client action which will use your web action to send email using your credentials from service center smtp configuration.

Thanks,
--RJ--

Rank: #116
Solution

Hello Gu,

Hope you are doing well.

Sending e-mails is a feature that applies only to Traditional Web Applications (because it is Server Side). That's why you don't have that option in Reactive Web modules.

For this purpose, you will need a Traditional Web module, with a public Server Action that will send the e-mail. 

In therms of architecture, what is usually done is to have a Core Layer module, defined as a Traditional Web module. In this module (Server Side), you may have your logic for sending e-mails.

Back to your Reactive Web module, you can use a client or server action to call this public server action from the Traditional Web module.


About the attachment, you have Attach File tool.

You should use it inside the Preparation of the e-mail.


Hope that this helps you!


Kind regards,

Rui Barradas

Hello Gu Kang,

There is one forge component that you can use for emails and related functionality. The component is RichMail.

You can also refer this - https://www.outsystems.com/forums/discussion/34236/richmail-attachment-sample/ 

Thanks,

Unnati