7
I wonder if you have done or have any example that can send the link to the following problem:
I have a project that has the Books crud and a User controller with their respective views.
I made the regular e-mail module like the generate mailer
which is called Loan.
I would like to know how to put a button with a link in the view book that when clicking send an email requesting the book loan.
Thanks in advance for your attention.
I think you will have to create in your template (Models) a method that calling the Mailer method already created.
– augustoppimenta
@augustoppimenta as well as the models, the Mailer has already been created! What I want is when the user presses a button, send an email!
– Adriano Carvalho
Take a look at that link. I think it might help.
– augustoppimenta
@augustoppimenta this has already been done! There is an email notification when a user is created! What I was wanting is that after the logged in user wants to press a 'Loan' button of a book' the user who posted the book can receive an email with the request!
– Adriano Carvalho