Skip to content

Instantly share code, notes, and snippets.

View irahulsaini's full-sized avatar

Rahul Saini - Web Designer & Developer irahulsaini

View GitHub Profile
<?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'] = '