Add input validation to email_config.json fields:
- template_dir: exists and contain a mail_template.html
- send_from: an email address.
- send_to: email address list with , separator
- subject: not empty string
-named_ranges: named ranges list with , separator. Syntax can read in README.MD
-cell_values: cell value list with , separator. Syntax can read in README.MD
-add_attachment: boolean value: true or false.
-attachment_file_name: valid file name with xlsx extension.
Input validation run before core business logic execution. Implement in separated class.
Add input validation to email_config.json fields:
-named_ranges: named ranges list with , separator. Syntax can read in README.MD
-cell_values: cell value list with , separator. Syntax can read in README.MD
-add_attachment: boolean value: true or false.
-attachment_file_name: valid file name with xlsx extension.
Input validation run before core business logic execution. Implement in separated class.