We have a form to receive email(smtp) and another form to receive sms settings. under these forms we allow user to send a test email and sms using entered data in related form above. what is the right way to implement sending test email and sms?(I mean a way that does not brake SOILD and other OOP principles). which routes and controllers and methods should created? currently I just added to methods in SettingController : sendTestEmail,sendTestSms but I know it's not the correct way of doing that because as the program grows it gets harder to debug and maintain and it also brakes SRP principle of SettingController. note: we receive and save settings from database using SettingController.
Aucun commentaire:
Enregistrer un commentaire