MAILTOOL Configuration and Defaults

Defaults for MAILTOOL are now stored in a file in the IFS in JSON format.

The standard default file is /bvstools/mailtool/config/defaults.json.

You can create subdirectories for each user you wish to have unique defaults.  For example, if user JSMITH wanted their own defaults file, you would create a subdirectory named /bvstools/mailtool/config/jsmith and place the defaults.json file in the subdirectory and set the defaults specifically for that user.

You can also use the #mailtool_setValue function to set configuration file used.  The variable name is "configuration_file".  This is the only value that can be used before the #mailtool_init function.

An example of the file is as follows:

{
"variables": [
{
"name":"from_email",
"default":"myemail@mycompany.com"
},
{
"name":"from_name",
"default":"James Edward III"
},
{
"name":"subject",
"default":" "
},
{
"name":"message",
"default":" "
},
{
"name":"reply_to_email",
"default":" "
},
{
"name":"reply_to_name",
"default":" "
},
{
"name":"mdn_email",
"default":" "
},
{
"name":"mdn_name",
"default":" "
},
{
"name":"sender_email",
"default":" "
},
{
"name":"sender_name",
"default":" "
},
{
"name":"footer_stream_file",
"default":" "
},
{
"name":"message_id",
"default":" "
},
{
"name":"message_id_domain",
"default":" "
},
{
"name":"send_with_server_type",
"default":"*MAILTOOL"
},
{
"name":"mail_router",
"default":"*smtp.outlook365.com"
},
{
"name":"use_mail_router",
"default":"*ONLY"
},
{
"name":"perform_mx_lookup",
"default":"*YES"
},
{
"name":"use_ssl",
"default":"*TLS"
},
{
"name":"smtp_port",
"default":"995"
},
{
"name":"smtp_auth_user",
"default":"myemail"
},
{
"name":"smtp_auth_password",
"default":"mypassword"
},
{
"name":"bind_to_ip_address",
"default":" "
},
{
"name":"timeout",
"default":"30"
},
{
"name":"ccsid",
"default":"819"
},
{
"name":"no_attachment_action",
"default":" "
},
{
"name":"body_content_type",
"default":"text/plain"
},
{
"name":"mime_ccsid",
"default":"819"
},
{
"name":"temporary_directory",
"default":"/tmp"
},
{
"name":"importance",
"default":"normal"
},
{
"name":"priority",
"default":" "
},
{
"name":"recipient_separator",
"default":","
},
{
"name":"close_connection",
"default":"*YES"
},
{
"name":"debug",
"default":"*NO"
},
{
"name":"debug_file",
"default":"mailtooldebug_/%id%/.txt"
},
{
"name":"debug_smtp_file",
"default":"mailtoolsmtp_/%id%/.txt"
}
]
}


Comments