12-09-2003, 02:50 PM
With my host, we want to block the default smtp server and force our users to specify their local mail server for smtp auth.
1. use dummy mail server in php ini file.
2. How to specify smtp mail server in script.
3. How to specify user login for smtp server.
12-09-2003, 05:07 PM
all you can really do is disable the mail function in the php.ini ( disable_functions directive ), if you specify a dummy sendmail application thats going to slow the server down when people ultimately try to use it anyway ;)
you can find a fair few SMTP scripts at hotscripts.com , classes at phpclasses.org and a couple of half decent ones at zend.
you could also recompile PHP without mail support or better still rewrite the mail function to accept sendmail path & authentication arguments.
12-09-2003, 11:48 PM
Thanks for the heads up!