I fixed the ns_sendmail proc, by replacing the smtp parameter with my mail server. It is now working fine. Thank you for your help.
That gets the SMTP server from your AOLserver config file. If you have no such entry in your config file, ns_sendmail defaults to using localhost. So all you had to do was add the proper mailhost line into your config file.set smtp [ns_config ns/parameters mailhost]