I search the best method to send an email by just clicking a button. I don't want the button to open the email application "href='mailto: ...'" but I want it to send the email directly, like a submit button with hidden values.
Imagine a page to report. The user clicks on the button. the webmaster would get an email , with the subject "a page to review" and the body "An user has reported this page ( "this page" would be clickable to the page )
I was thinking of a form and hiding the text fields with their value but I don't get it work
I have also trouble to find out how to grabd the link of the page, I guess it has to be with PHP maybe you need other tricks ?
thanks for reading