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'
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.
Here's an example used in the past on FreeFlarum:
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.