1) if loop should be updated to validate that all parameters like smtp ip, port are present in post request to update in SQL.
2) Update collector.php to use credentials when triggers the email alert
3) If credentials are not provided, the email should still work. With current code without credentials it might throw exceptions. You can add an if condition that if credentials are not present, do not use the phpmailer credential parameters
I have not tested this changes so please test the changes and let me know if any issues
1) if loop should be updated to validate that all parameters like smtp ip, port are present in post request to update in SQL. 2) Update collector.php to use credentials when triggers the email alert 3) If credentials are not provided, the email should still work. With current code without credentials it might throw exceptions. You can add an if condition that if credentials are not present, do not use the phpmailer credential parameters
I have not tested this changes so please test the changes and let me know if any issues