----- txtmsg.txt, the template for composing and sending a MailMerge -- ----- style set of outgoing messages. David Harris, 17Jun'05 -- ----- -- ----- The EMAILS file can have multiple fields, separated by '|'. -- ----- DO NOT USE LEADING |'s. ----- -- ----- Any field THAT IS USED from the emails file needs a target -- ----- string, an '=' character, and the number of the field across the -- ----- line of the emails file. ----- -- ----- Lines having an "=" will be used to make a table of substitutions -- ----- and which field in the email.txt file is to be used for the -- ----- substitution. -- ----- -- ----- The string after the "=" will be a number (1 is the first) ------- ----- for the field in an email.txt row that is to be substitued for ----- ----- the target string just before the "=" sign. ------------------------ ----- SOME FIELDS MAY BE UNUSED. The target strings and numers show ----- ----- which fields are used, and where the substitution should occur. -- ----- -- ----- At each email record, a second table will be made with the values -- ----- to be substituted FROM THAT PARTICULAR LINE OF THE EMAIL.TXT table.- ----- There can be many substitutions made, if you need. -- ----- ----- In the common case shown below ----- the TTTTT string would be substituted with each actual email address- ----- (which would also be used for the $recipient part of the SMTP -- ----- negotiation). -- ----- After the header region is sent, the message lines will be sent, --- ----- with substitutions of the targets (like 'TTTTT'). -- ----- -- ----- The first 3 lines after MMMMM...MMM are special and must evaluate to- ----- (1) the official sender, (2) the recipient, and (3) an empty line. -- ----- There must also be an empty line between the header info and the -- ----- material that will be the visible message when a message is chosen.-- ----- -- ----- The To: line can have any address(es), unrelated to the actual TTTTT- ----- adderess used. If the human name is quoted and the email unquoted-- ----- then both are visible to the receiver. -- --------------------------------------------------------------------------- TTTTT=1 NNNNN=2 TITLE=3 MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM rstephens@DarwinDayCelebration.org TTTTT To: TTTTT Subject: DarwinDay.org From: rstephens@DarwinDayCelebration.org Reply-To: rstephens@DarwinDay.org X-Accept-Language: en-us,en MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Dear TITLE NNNNN, How's things at TTTTT? Sincerely, - David for Bob in a test message.