PHP and Javascript - Send email when label is clicked

1

I have a form on my page, part of which can be printed when a Print label is clicked:

<label id="printEvento" class="textDescricaoSobre font13" style="cursor: pointer">IMPRIMIR EVENTO</label>

Then another label can give the user the option to send this part of the form via email:

<label name="enviaEmail" class="textDescricaoSobre font13" style="cursor: pointer">ENVIAR POR E-MAIL</label>

However, I can not create the code (either in PHP or Javascript or the two together) that sends this email and warns that the sending happened through an alert. In fact, the alert is possible, but only in Javascript.

How can I do it? Do I use the PHPMailer library together?

    
asked by anonymous 24.05.2016 / 15:48

0 answers