Hi,
Is there a way to set the default email delivery to a specific smtp setting? so after the installation, it uses this setting instead of the default 'mail'
Thanks
Jeff
bloodchen the easiest way right now would be to add a record to the DB settings table. I'm hoping to move setting defaults to an extender based system relatively soon.
Are you trying to set this up for a hosting service or some other automatic provisioning system?
askvortsov Yes. I am trying to create an automatic provisioning system.
You can also create a simple local extender for that, because obviously you might want to remove mail as an option in hosted scenarios.
mail
Here's an example used in the past on FreeFlarum:
https://github.com/gwillem/flarum-multitenant/blob/1666b7ee66ae648b8e4c8909da6ccceffa53b1f1/app/Extend/ModifyMailDrivers.php
luceos If it's through an extension, does it mean it has to be activated in admin page first? It's still not very convenient for an automatic system.
bloodchen local extenders in the root extend.php are always active and are always executed.
extend.php