I am creating a basic app using react-rails. There are no models involved, but I do have a need to generate emails through a simple form that looks like this:
Since I am using React, I need to generate an AJAX Post request and point it towards my rails mailer. In all the rails mailer examples I've seen, the mail is sent when a new user is created (in the users post path). I don't have a need for this. Is it possible to treat my mailer like a controller and post directly to the mailer? How would the routes look? Thanks in advance