I don't want to use mailto, because if I use mailto it will open an email client.
Can't be done. Sending e-mail only works on the server side. If all you're doing is sending e-mail, a quick PHP script would likely do the trick.
<?php $to = '[email protected]'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers);
©2020 All rights reserved.