mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 21:49:01 +01:00
Default the mail from address. Closes #2297
This commit is contained in:
parent
aec4d70c58
commit
1f537faf32
@ -88,6 +88,12 @@ class ConfigServiceProvider extends ServiceProvider
|
||||
}
|
||||
|
||||
$this->app->config->set('cors.paths.api/v1/*.allowedOrigins', $allowedOrigins);
|
||||
|
||||
// Set the mail from address.
|
||||
if (!$this->app->config->get('mail.from.address')) {
|
||||
$url = parse_url($appDomain)['host'];
|
||||
$this->app->config->set('mail.from.address', "notify@{$url}");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user