The Toolkit for Online Communities
18814 Community Members, 0 members online, 1832 visitors today
Log In Register
OpenACS Home : Forums : OpenACS Q&A : ns_sendmail : One Message

Forum OpenACS Q&A: Re: ns_sendmail

7: Re: ns_sendmail (response to 6)
Posted by James Bennin on
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.
8: Re: ns_sendmail (response to 7)
Posted by Andrew Piskorski on
Ah, you "fixed" it? More like, you broke it. Note that the ns_sendmail code specifically does this:
set smtp [ns_config ns/parameters mailhost]
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.
9: Re: ns_sendmail (response to 8)
Posted by James Bennin on
Hey buddy, I fixed and it works fine, ok.  I did not break anything.  The mail is able to go out to its proper recipients and I am not getting any sendmail error any more.  And by the way, setting smtp with my mailhost/server name is what I did to fix.  So thank you for your comments.