Forum OpenACS Q&A: ns_sendmail
It is not part of OpenACS.
[21/Aug/2003:16:41:29][4410.237579][-sched:9-] Error: ns_sendmail failed: could not connect to "localhost:25"
Do you have a mail server running on the server?
netstat -na | grep 25
Can you telnet to localhost, port 25
telnet localhost 25
You might have to change the settings in the your conifg file to point to a working mail server on your network:
ns_param mailhost smtp.yourcompany.com ;# SMTP host for ns_sendmail
Like you were told in a previous <a href="/forums/message-view?message_id=115843">thread</a> (and a couple of times in this thread), your problem most probably is, that your mail transfer agent is not running (or at least accepting connections). I don't think modifying ns_sendmail will help you here.
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]