Search through the web and finally got the solution:-
Open php.ini, set "short_open_tag" to "On" value as described below
short_open_tag = On
short_open_tag = On
datadir=[NEW_DATA_FOLDER]
telnet [SMTP_SERVER] 25
helo [CLIENT_MACHINE_NAME]
MAIL FROM:[EMAIL_FROM]
RCPT TO:[RCPT_TO]
DATA
Hello Testing! .
pg_dump --schema-only -U [USER_ID] [DATABASE_NAME] > [SQL_FILE]
pg_dump --no-owner --no-privileges -U [DB_USER_LOGIN] [DATABASE_NAME] > [DATABASE_DUMP_FILE]
psql -U [DB_USER_LOGIN] [DATABASE_NAME] < [DATABASE_DUMP_FILE]
adduser [NEW_DB_USER_LOGIN]
passwd [NEW_DB_USER_LOGIN]
psql -d template1 -U postgres
template1=#CREATE USER [NEW_DB_USER_LOGIN] WITH PASSWORD '[NEW_DB_USER_PASSWORD]';
template1=#CREATE DATABASE [NEW_DATABASE_NAME];
template1=#GRANT ALL PRIVILEGES ON DATABASE [NEW_DATABASE_NAME] to [NEW_DB_USER_LOGIN];
// 0 = off (for production use) // 1 = client messages // 2 = client and server messages $mail->SMTPDebug = 2;
SMTP -> FROM SERVER:220 [SMTP_SERVER] Microsoft ESMTP MAIL Service, Version: 5.0.2195.7381 ready at Mon, 23 Sep 2013 14:38:12 +0800 CLIENT -> SMTP: EHLO [[CLIENT_SERVER_NAME]] SMTP -> FROM SERVER: 501 5.5.4 Invalid Address SMTP -> ERROR: EHLO not accepted from server: 501 5.5.4 Invalid Address CLIENT -> SMTP: HELO [[CLIENT_SERVER_NAME]] SMTP -> FROM SERVER: 501 5.5.4 Invalid Address SMTP -> ERROR: HELO not accepted from server: 501 5.5.4 Invalid Address CLIENT -> SMTP: AUTH LOGIN SMTP -> ERROR: AUTH not accepted from server: 503 5.5.2 Send hello first CLIENT -> SMTP: quit SMTP -> FROM SERVER:221 2.0.0 [SMTP_SERVER] Service closing transmission channel SMTP Connect() failed. Mailer Error: SMTP Connect() failed.
//if(!$this->SendHello('EHLO', "[" . $host . "]")) { // if(!$this->SendHello('HELO', "[" . $host . "]")) { // return false; // } //} if(!$this->SendHello('EHLO', $host)) { if(!$this->SendHello('HELO',$host)) { return false; } }