I just changed following line
$smtp->host_name="smtp.gmail.com"; /* Change this variable to the address of the SMTP server to relay, like "smtp.myisp.com" */
$smtp->host_port=465; /* Change this variable to the port of the SMTP server to use, like 465 */
Getting this error
Resolving SMTP server domain "smtp.gmail.com"...
Connecting to host address "74.125.127.109" port 465...
Connected to SMTP server "smtp.gmail.com".
Could not send the message to
[email protected]. Error: it was not possible to read line from the SMTP server: data access time out
Please help me to resolve this issue