user_email;
$sendingmessage = $name." sent you some questions regarding ".$post->post_title."
".$name." questions:
".$message;
$sent = wp_mail( $tom, 'Questions by '.$name.' regarding '.$post->post_title , $sendingmessage, $headers );
if($sent){
//echo 'your mail sent to '.$tom;
echo 'sent';
}
else{
echo 'failed to send';
}
}
?>