You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just need to send data from the contact form on the site to the administrative email. I don't want to create a separate service for this, especially since Strapy has his own solution. But I don't understand how to use it directly from the frontend.
As far as I can see, we do not have access to $strapi.plugins['email']... I can only create a collection like Messages. Then submit the new post to the collection from the contact form. And on the Strapi side create a trigger (idk how) for sending a letter when a new post created in this collection?
Am I thinking right? Maybe there is some simpler solution or a ready-made example of such an approach?
The text was updated successfully, but these errors were encountered:
You could just add a new route to an existing collection. Then link this route to a new controller, which you call your email service from. There is no need to add a whole collection unless you plan on storing these emails in your database.
Is it possible to?
I just need to send data from the contact form on the site to the administrative email. I don't want to create a separate service for this, especially since Strapy has his own solution. But I don't understand how to use it directly from the frontend.
As far as I can see, we do not have access to $strapi.plugins['email']... I can only create a collection like Messages. Then submit the new post to the collection from the contact form. And on the Strapi side create a trigger (idk how) for sending a letter when a new post created in this collection?
Am I thinking right? Maybe there is some simpler solution or a ready-made example of such an approach?
The text was updated successfully, but these errors were encountered: