if (!empty($_POST['send_email']) and !empty($_POST['send_mess'])):
wp_mail('vbegunof@gmail.com', 'letter from website', $_POST['send_mess']); //, $headers, $attachments
wp_redirect( get_permalink() );
exit;
endif;
}
Find more questions by tags WordPress