I am able to connect to outlook very easily but not able to connect with php only.
- $mail=new PHPMailer();
-
-
- $mail->isSMTP();
- $mail->Host='smtp.zoho.com';
- $mail->SMTPAuth=true;
- $mail->Username='help@odekh.com';
- $mail->Password='password';
- $mail->SMTPSecure='tls';
- $mail->SMTPDebug=3;
- $mail->Port=587;
-
-
- $mail->From='help@odekh.com';
- $mail->FromName='Help Help';
- $mail->addAddress('anyaddress@gmail.com');
-
- $mail->Subject='Testing';
- $mail->Body='Testing body';
-
- if($mail->send()){
- var_dump('mail is sent');
- }
Please help me as the error is: