Chapter 1 - The MAILTOOL Command

                              E-Mail Tool (MAILTOOL)

 Type choices, press Enter.

 To Address . . . . . . . . . . .   ______________________________________

                + for more values

 To Name  . . . . . . . . . . . .   ______________________________________

 From Address . . . . . . . . . .   ______________________________________

 From Name  . . . . . . . . . . .   ______________________________________

 CC: Address  . . . . . . . . . .   ______________________________________

                + for more values

 Name of CC recipient . . . . . .   *NONE_________________________________

 BCC: Address . . . . . . . . . .   ______________________________________

                + for more values

 Name of BCC recipient  . . . . .   *NONE_________________________________  

 Reply To Address . . . . . . . .   ______________________________________   

 Reply To Name  . . . . . . . . .   ______________________________________  

 Subject  . . . . . . . . . . . .   ______________________________________

 Message Text . . . . . . . . . .   *NONE_________________________________

 Attachment . . . . . . . . . . .   *NONE_________________________________

                + for more values

 

 MDN Address  . . . . . . . . . .   *NONE_________________________________

 MDN Name . . . . . . . . . . . .   ______________________________________

 Sender Address . . . . . . . . .   *NONE_________________________________    

 Sender Name  . . . . . . . . . .   ______________________________________  

 Return Address . . . . . . . . .   *NONE_____________________________________         

 Return Name  . . . . . . . . . .  .            

 Message ID . . . . . . . . . . .  .   *NONE_____________________________________

 Message ID Domain  . . . . . . .   *DFT   

 List Unsubscribe Value . . . . .   *NONE 

 List Unsubscribe Post Value  . .   *NONE 

 User Defined Header:               

  Header ID  . . . . . . . . . .    ______________________________________________

  Header Value . . . . . . . . .    ______________________________________________

 Save Email . . . . . . . . . . .   *DFT          *DFT, *YES, *NO  

 Bad Address Action . . . . . . .   *DFT          *DFT, *WARN, *FAIL  

 Configuration File . . . . . . .  .   *NONE

 Footer Stream File . . . . . . .   ______________________________________  

 Attachment Name  . . . . . . . .   *ATT__________________________________

                + for more values

 

 Send With Server Type  . . . . .   *IBMSMTP      *MAILTOOL, *IBMSMTP...

 Mail Router  . . . . . . . . . .   *NONE_________________________________

 Mail Router Stream File  . . . .   *NONE_________________________________

 Perform MX Lookup  . . . . . . .   *YES          *NO, *YES 

 Use SSL  . . . . . . . . . . . .   *NO           *NO, *YES

 Port . . . . . . . . . . . . . .   25            Number

 SMTP Auth User . . . . . . . . .   *NONE

 SMTP Auth Password . . . . . . .   *NONE

 Use Mail Router  . . . . . . . .   *NO___        *NO, *YES, *ONLY

 Bind to IP Address . . . . . . .   *NONE

 Timeout  . . . . . . . . . . . .   30            Number

 Coded Character Set Identifier     819           Number  

 No Attachment Action . . . . . .   *NONE         *NONE, *ERR  

 Body content type  . . . . . . .   'text/plain'__________________________

 Mime header code page  . . . . .   819__         1-65535

 Temporary Directory  . . . . . .   '/tmp'________________________________

 Importance . . . . . . . . . . .   *NORMAL___    *NORMAL, *HIGH, *LOW...

 Priority . . . . . . . . . . . .   *NONE         *NORMAL, *URGENT...

 Recipient Separator  . . . . . .   ','           

 Character value  Close Connection . . . . . . . .   *YES          *YES, *NO

 Debug  . . . . . . . . . . . . .   *NO_          *YES, *NO

 Debug File Name  . . . . . . . .   'mailtooldebug.txt'___________________

 SMTP Debug File Name . . . . . .   'mailtoolsmtp.txt'____________________

 Base64 Encode Subject  . . . . .   *NO           *NO, *YES 

 Base64 Encode Message  . . . . .   *NO           *NO, *YES 

 Redirect Email . . . . . . . . .   *DFT          *DFT, *YES, *NO

 Redirect Recipient . . . . . . .   *DFT  

 Redirect Config File . . . . . .   *DFT    


 F3=Exit   F4=Prompt   F5=Refresh   F12=Cancel   F13=How to use this display

 F24=More keys

The eMail Tool (MAILTOOL) command allows you to send emails from your AS/400 with a variety of options.

Examples of specifying wildcards:                

An example of sending an email using a configuration file is as follows:

MAILTOOL TOADDR(jeremyclarkson@topgear.com) 

SUBJECT('Please test the VW Golf R instead of a GTI.') 

MESSAGE('Dear, Jeremy. \n\n  I enjoyed your test of the VW GTI, but I am very interested in seeing a review of the VW Golf R as well.  With it''s all wheel drive system and more torque and HP I believe the Stig could put it around the track very fast. \n\n  Sincerley, Brad.') 

CONFIG('/bvstools/bvstone_mailtool.json')

This email will be sent using MAILTOOL Plus and authentication because the configuration file specified is set up with these proper values.  Only the recipient(s), subject, message and attachments will be used from the actual MAILTOOL command.

The configuration file is as follows:

{

  "variables": [{

   "name": "from_email",

   "default": "bvstone@gmail.com"

  }, {

   "name": "from_name",

   "default": "Brad Stone"

  }, {

   "name": "send_with_server_type",

   "default": "*MAILTOOL"

  }, {

   "name": "mail_router",

   "default": "smtp.gmail.com"

  }, {

   "name": "use_mail_router",

   "default": "*ONLY"

  }, {

   "name": "perform_mx_lookup",

   "default": "*NO"

  }, {

   "name": "use_ssl",

   "default": "*YES"

  }, {

   "name": "smtp_port",

   "default": "465"

  }, {

   "name": "smtp_auth_user",

   "default": "bvstone@gmail.com"

  }, {

   "name": "smtp_auth_password",

   "default": "password goes here"

  }, {

   "name": "bind_to_ip_address",

   "default": " "

  }

 ]

}