Skip to content

Instantly share code, notes, and snippets.

View contact-form.php
<?php error_reporting(0); $mail = array();
/* --------------------------------------
| github: https://gist.github.com/irahulsaini/7db136cd6876b0c5706a150cc82dc8e4/
| documents: https://www.irahulsaini.com/2019/06/simple-contact-form-php.html
*/
$mail['to'] = 'contact@irahulsaini.com'; //replace with your email, multiple email id seperated by comma
$mail['from_name'] = 'Rahul Saini'; //replace with yours
$mail['from_mail'] = 'hello@irahulsaini.com'; //replace with yours
$mail['subject'] = "A New Contact Message Received";
$mail['message'] = '
You can’t perform that action at this time.