Click to See Complete Forum and Search --> : mail() function and PEAR help


beginnerz
03-03-2006, 09:23 PM
Hi, this is my 1st time trying to create a simple send mail function, if the end user registered my system, it will send one user name and greeting mail to the user. And i trying to use the mail() function, but it dont seems to work.
i m using php4.4, IIS and mssql under window XP


mail(example@hotmail.com', 'My Subject', "testing 1 2 3");


and it shows Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for example@hotmail.com in c:\inetpub\wwwroot\test.php on line 32

What do i need to change with the smtp inside php.ini. Can somebody provide me a simple example?



Another question is , if i m using IIS , how to connect to pear? this is the 1st time i m using IIS, and i trying to require_one("mail.php") and it shows No such file or directory.

thanks for the patience

Sheldon
03-03-2006, 09:32 PM
open the first single quote

beginnerz
03-03-2006, 09:51 PM
sorry, typing mistake, is not that problem.

mail('example@hotmail.com', 'My Subject', "testing 1 2 3");


for the pear, is it the problem with the include_path in the php.ini, i check the phpinfo() and it shows "include_path .;c:\php4\pear .;c:\php4\pear ", but my pear package is in "C:\Program Files\EasyPHP1-7\php\pear\go-pear-bundle", where do i change in the php.ini?

SpectreReturns
03-04-2006, 12:43 AM
Looks like the problem is with your mail server, being unable to relay. Mine was doing that too, so I ****canned it.