I have an application consist of two modules
Service App
Reactive App
All server actions and tables exist in service app , now i need send email when i trigger server action from the service module , unfortunatly i can use the email inside the server action in the service module ! so whats the solution for this case ?
Hi Omar
You can send your emails from your reactive app. What you need to do is:
I hope it helps. If you have more questions, let me now and if you want, send the oml file so I can help you. You can allways see the documentation about emails here.
Cheers.
Oh ok, I think I understand now. You are talking about this service module?
If you do, yes it does not support. If your idea was to create a single module to support all the database, you should have created a Blank Module. Thats what's usually used to be the database, and create all the entities and server action you understand? The CS module, or the "Database module" is allways the Blank type.
You cannot create the email action in the service one.
I think you should learn a little bit about architecture, that can help you in further apps that you create. See this documentation about Architecture Best Practices and Architecture Canvas, I think it would help you.
but i am using service module to hold all servers actions ! i dont want to create server action in the reactive app
i want to send from server action exist in service moduel
If you want to do that, the only change that you need to do is to create the server action in the service module, it has the send email action to. Then you can add depedencies to add the email server action to you reactive module. I think that can work out.
But the service moduel dose not support having mails