I have a little problem, that is about php.ini. The SMTP is localhost and want change it during the script. I think it’s possible by using the function ini_set();… i am doing this but doesn’t work:
ini_set ("STMP","stmp.apie.pt");
The PHP version in server is 4.0.6, and i don’t have the possiblity to change that option in php.ini, that 's why i want to change it during the script.
It might be that your server has the mail() function disabled. Many servers do that to deter spammers from sending out mass mails. You might just want to check with them…