BSENDM.EXE

Release Notes  August 1, 1999
Written by Hippo2000

BSENDM.EXE is a Sending email program, launched from command line. You can send emails from this program with only passing a parameter file.
When you send same emails to receivers' groups at once, /s option enables to modify body of the emails matching with each group.

Running BSENDM

  Bsendm [/d] [/s] parameter-file
  /d option : After processing, delete specified parameter-file.
  /s option : Enables to modify body of the emails matching with each group. (See Contents of Paramere-File)

Contents of Parameter-file

  Line 1: Log File Name
          2: SMTP-Server
          3: Addresses(separating by a TAB) or
              Receivers File (that contains receivers' addresses)
          4: Sender's email address
          5: Subject
          6: Attached Files(separating by a TAB)
      >=7: Body of the email
  In a parameter-file, the line has '#' at 1st-column will be ignored as a comment.
  If you want to omit Subject or Attached Files, specify only newline at their lines.
  Receivers' Address that contains '\' will be recognized as a name of "Receivers File".
  This program wil read from that file by a line, and send emails to them.
  If /s option was specified, '%1' in Body of the email will be replaced into the specified text in the Receivers File.
  This is very useful when you want to modify a part of Body in the email matching with each receivers' group.
  If you want to send '%1', you can use '%%1'.
  The replacement string may not contain TAB or newline.
  '%2' in Body will be replaced to the text of the specified file.
  Use '%2' at Body of the email, if you want to replace the text to large amount of text or the text that contains TAB and newline,
  Receivers' Addresses that contains '\' will be recognized as a name of "Receivers File".
  This program wil get addresses from each line of that file, and send emails to them.
  When /s is specified, Receivers File is also used. 

Contents of the Receivers File

/s option is not specified

  Line 1: Receiver Address1 (If you want multiple addresses, sparate them by a TAB)
  Line 2: Receiver Address2 (If you want multiple addresses, sparate them by a TAB)
        ...
  Line n: Receiver Address-n (If you want multiple addresses, sparate them by a TAB)
  If the 1st column is '#', the line will be ignored as a comment.

/s option is specified

  Line 1: Receiver Address-1[TAB]Replacement String[TAB]Replacement Filename
  Line 2: Receiver Address-2[TAB]Replacement String[TAB]Replacement Filename
        ...
  Line n: Receiver Address-n[TAB]Replacement String[TAB]Replacement Filename
  Ex.
  Mr.Baba<baba@hogehoge.co.jp>[TAB]Tatuo Baba[TAB]c:\data.txt[CR][LF]
  who@who.com[TAB][TAB]c:\engdata.txt[CR][LF]
  who1@who1.com[TAB]Mr baba[CR][LF]
  who2@who1.com[CR][LF]

  If replacement string or replacement filename is omitted, '%1' and '%2' in body of the email will be removed.
  When you specify /s option, you may confim that there is no '%1' nor '%2' in Body.
  If you want to send '%1' or '%2', translate them into '%%1' and '%%2'.
  '%1' and '%2' in replacement file are no problem and has no effects.


Sample Running

 > bsendm c:\temp\file1.txt
 > bsendm /s c:\temp\file1.txt
 > bsendm /d /s c:\temp\file1.txt

Note: BSENDM.EXE is included in the BASP21.DLL distribution.


Important Note of BABAQ Free Soft

Home


Copyright 1997 Tatsuo Baba,All rights reserved.