<?php
$Name = "$row_comentario[nombre]"; //senders name
$email = "$_POST[correos]"; //senders e-mail adress
$recipient = "$row_formulario[email]"; //recipient
$mail_body = "Tienes un mail..."; //mail body
$subject = "$_POST[detalle]"; //subject
$header = "From:
[email protected] ". $Name . " <" . $email . ">\r\n"; //optional headerfields
if(condicional){
}
mail($recipient, $subject, $mail_body, $header); //mail command :)
?>