What is the best practice for sending emails from MVC based platform ?
Should I rather send emails from controller or model ? What is the best practice ?
One opinion is that model should send emails, just to keep controller slimest possible, other opinion is that controller should send emails, because model shouldn't have access to services.
Thanks for contribution to this topic.
Aucun commentaire:
Enregistrer un commentaire