Forum OpenACS Q&A: Response to ns_senmail extraheaders errors-to:

Posted by Jonathan Marsden on
It seems that this code creates $e_rrors as a string variable, not an ns_set set. See for docs on using ns_set. Something roughly like
set e_rrors [ns_set create]
ns_set update $e_rrors "Errors-to" ""

might be closer to what you want to do, I think? There should be examples of this sort of usage in existing code... yes, ticket-defs.tcl does

    set extra_headers [ns_set create] 
    ns_set update $extra_headers "Reply-to" $ticket_email

In other words, that parameter to ns_sendmail is an ns_set, it is not a string.