Skip to main content

Posts

Showing posts from June, 2018
Ways to avoid spam mail() using PHP 1. Add this into your code    $headers .= "Reply-To: The Sender <vishakharrumale@gmail.com>\r\n";    $headers .= "Return-Path: The Sender <vishakharrumale@gmail.com>\r\n";    $headers .= "From: The Sender <senter@sender.com>\r\n";   2. OR add this into your code     $mail->addReplyTo('vishakharrumale@gmail.com', 'v');     $mail->addCC('vishakharrumale@gmail.com','cc');     $mail->addBCC('vishakharrumale@gmail.com','bc'); ***Note: Option 2 is simple and effective so use this...this will work***                                                         Thank You