this is my code for sending mail through xampp i have modified the php.ini and sendmail.ini from the xampp . Upon running the php i'm not getting email. Please help me .
php.ini
[mail function]
SMTP =smtp.gmail.com <br>
smtp_port =587
; For Win32 only.
;sendmail_from =email@gmail.com
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
sendmail.ini
smtp_server=smtp.gmail.com
; smtp port (normally 25)
smtp_port=587
auth_username=email@gmail.com <br>
auth_password=password <br>
force_sender=email@gmail.com
The php code used for sending email is this
mail("garvit.j742@gmail.com","subject","this is the mail","From: email@gmail.com");
this is my code for php. Tell me the errors ??
"Socket Error # 11001