I have tried to send emails through both the mail(..) function and through the phpmailer but fails on both the accounts.

I can provide the code if that is desired. I have set the SMTP while using the mail(..) function through the ini_set("SMTP", ...) and also with the phpmailer functions but I get the following errors:

Error 1:
Code:
Debug Warning: C:\Program Files\Pcounter Web Report\www\libraries\class.phpmailer.php line 1255 - mail(): Failed to connect to mailserver at "smtp.wlink.com.np" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
E]
Error 2:
Code:
Debug Warning: C:\Program Files\Pcounter Web Report\www\libraries\class.smtp.php line 177 - fsockopen(): unable to connect to smtp.wlink.com.np:25
smtp.wlink.com.np is my ISP's SMTP address and the port used is the default: 25.

However when I send the mail through the MS-OUTLOOK I can easily send mails. However with the MS-OUTLOOK I have an account with the ISP and I have to use a password for it.

Is my ISP blocking so that I cannot send mails programatically? What could be the problem? How do I supply the password when sending the mails through PHP programatically? The sender email address is the same address that I have in the MS-OUTLOOK and this address was provided to me by the ISP company?

Thanx in advance.