How to send mail through the browser address bar?

How to send mail through the address bar of the browser, here is the script, for example

<?php
$to = '[email protected]';
$subject = 'sample';
$message = 'mess1';
$from  = 'sample';
if (isset($_GET['to'])) { $to = $_GET['to']; }  
if (isset($_GET['subject'])) { $subject = $_GET['subject']; } 
if (isset($_GET['message'])) { $message = $_GET['message']; } 
if (isset($_GET['from'])) { $from = $_GET['from']; }
mail ($to, $subject, $mes, $from);
?>

What will it look like in the address bar? Thanks in advance.


Answer 1, authority 100%

Something like this:

http://site.ru/[email protected]&subject=&message=&[email protected]