I'm trying to sendmail in windows via my gmail account, i've configured my php.ini :

```
SMTP=smtp.gmail.com
smtp_port=587
sendmail_from=jaisanas2@gmail.com
sendmail_path="\"C:\xampp\sendmail\sendmail.exe\" -t"

and sendmail.ini :
smtp_server=smtp.gmail.com
smtp_port=587
smtp_ssl=auto
error_logfile=error.log
auth_username=confidential@gmail.com
auth_password=my-password-confident
force_sender=confidential@gmail.com

```

here is my code :

```
<?php
// The message
$message = "Line 1\r\nLine 2\r\nLine 3";

// In case any of our lines are larger than 70 characters, we should use wordwrap()
$message = wordwrap($message, 70, "\r\n");

// Send
$send = mail('jaisanas2@gmail.com', 'My Subject', $message);
if ($send) {
    echo "send";
}
else {
echo "fail";}
?>

```

also i have change my google security become less secure
i don't have any idea why, anyone help me ?