Forum OpenACS Q&A: Re: ns_sendmail

Collapse
6: Re: ns_sendmail (response to 1)
Posted by Tom Jackson on

An ns_set is a data structure used for a lot of things in AOLserver. It is a key/value structure that allows multiple entries per key, so you can use it for html headers and database rows, and in this case email headers.

ns_set put is used to add a new key/value pair to the set.

Collapse
7: Re: ns_sendmail (response to 6)
Posted by j c on
Thanks again!!

set extraheaders [ns_set create]
ns_set put $extraheaders "Content-type" "text/html"

worked.