We want to "beef" our users... we don't use no cheap spam!
Ok, many of our users are guests and some give us bogus addresses.
We average over 350 new guests a week. When we "beef" 'em via
ns_sendmail, the bounces and bogus addresses clog up the email box of
the "cowboy" sender. I see from the docs on ns_sendmail:
http://www.aolserver.com/docs/tcldev/tapi-118.htm
ns_sendmail to from subject body ?extraheaders? ?bcc?
Description
ns_sendmail sends a mail message with the specified to, from, and
subject headers, and the specified body text. You can specify
multiple "To:" recipients by providing a comma-separated list of
email addresses in the to argument.
You can add additional headers (such as an Errors-To header) by
specifying the set ID of an ns_set that contains header name and
content pairs in the extraheaders argument. On error, a Tcl error is
signaled.
In my code I've tried:
set e_rrors "Errors-to: errors@rocnet.com"
# Now inside the loop
ns_sendmail $email $my_email $subject $body $e_rrors
This does not work. The server.log shows:
Notice: Mail Failure: bob@rocnet.com
Error: invalid set id: "Errors-to: errors@rocnet.com"
Ok, I'll bite, How do I make my set id valid?, AND I don't
want to trigger a tcl error.
The ideal is that bounced messages go to an error mailbox and
eventually when we get maildir working and code to link to the
database, we could regularly process each message and if it were
a bogus mailbox, delete the user from our system.
To start, I just want all bounces to go to a different address.
Thank you.
-Bob
I beef my users, might they get a virus and go mad?