Setting Message Headers


You can set the headers of a message. This includes the "to", "cc", "bcc", "reply-to", and subject. The message headers are processed just before the message is sent, so you can have template variables in any header.

To set a header the syntax is HEADER = VALUE. Header can be any of the headers listed above, and value can be any string.

Example 1
bcc = [cycleeach race][player.email];[endcycle]
subject = Host Delay for [Game.Name]

Sorry, the host is being delayed because of a problem.

The BCC field (Blind Carbon Copy) would have a list of the players in the game. The "to" field is filled out by AT (it is always in reply to the message). This is an exmple where you as a host could set this up as a type of "custom report" and allow you as the host to send a command to AutoTroll that executes this report and sends (via bcc) a copy of the output to all players in the game you set.

This is a complicated example. But, you might use the BCC field to BCC yourself when a type of message is sent out. A good example of this is when a player joins or quits a game, when a player is dropped for inactivity or whatever. There are several template files you may want to set the BCC field in.

More typically you'll probably just change the "subject" field. If you don't like the default subject of AT's messages, you can change it for any message by setting this in the template file.