Solved-mail not send with phpmailer if you face problem to send mail from your localhost or live server you can use this code to solve your problem. function SendMail( $ToEmail,$subjectval, $MessageHTML, $MessageTEXT ) { // require_once ( 'class.phpmailer.php' ); // Add the path as appropriate include_once "webroot/phpmailer/PHPMailerAutoload.php"; $Mail = new PHPMailer(); $Mail->IsSMTP(); // Use SMTP $Mail->Host = "smtp.gmail.com"; // Sets SMTP server $Mail->SMTPDebug = 0; // 2 to enable SMTP debug information $Mail->SMTPAuth = TRUE; // enable SMTP authentication $Mail->SMTPSecure = "tls"; //Secure conection $Mail->Port ...
PHP,WORDPRESS,CAKEPHP,JQUERY,PHP TUTORIALS,CAKEPHP TUTORIALS,JQUERY CODES, CSS CODES, HTML CODES,EXPO, React, React Native, Angular,OOPS ,PHP INTERVIEW QUESTIONS @shubham715